63 lines
1.5 KiB
C#
63 lines
1.5 KiB
C#
|
using AndroidQQ_Lib;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Chat.Framework.QQSdk.AndroidQQ
|
|||
|
{
|
|||
|
public class AndroidQQClient : QQBase, ISDKCallBack
|
|||
|
{
|
|||
|
|
|||
|
private SDKInterFace SDK;
|
|||
|
public void Login(string Username, string Userpass)
|
|||
|
{
|
|||
|
if (SDK == null) SDK = SDKHelper.GetSDK(this);
|
|||
|
SDK.Login(Username, Userpass);
|
|||
|
}
|
|||
|
|
|||
|
public void Login()
|
|||
|
{
|
|||
|
new LoginForm(this).ShowDialog();
|
|||
|
}
|
|||
|
|
|||
|
public void OnCallBack(int tag, object msg)
|
|||
|
{
|
|||
|
Console.WriteLine(tag+","+msg);
|
|||
|
}
|
|||
|
|
|||
|
public void SendFriendImage(uint QQ, string ImageSrc)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
|
|||
|
public void SendFriendMessage(uint QQ, string Message)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
|
|||
|
public void SendGroupImage(uint GroupId, string ImageSrc)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
|
|||
|
public void SendGroupMessage(uint GroupId, string Message)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
|
|||
|
public void SendMessage(uint QQ, string message)
|
|||
|
{
|
|||
|
if (SDK != null)
|
|||
|
{
|
|||
|
SDK.SendMsg(new AndroidQQ_Lib.qq658.core.data.SendMsg_Friend_Text
|
|||
|
{
|
|||
|
Uin = QQ,
|
|||
|
Msg = message
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|