diff --git a/Interact/Client.cs b/Interact/Client.cs
index c995f73..3ed99bc 100644
--- a/Interact/Client.cs
+++ b/Interact/Client.cs
@@ -105,11 +105,11 @@ namespace Interact
///
/// 登录。此操作为异步操作,服务器返回结果后产生OnLoginDone事件。
///
- /// 成功将请求加入发送队列返回true,否则返回false。
/// 用户名
/// 密码
- /// 数据发送完成回调函数。注意,结果处理回调请设置OnLoginDone事件
- public static bool RequestLogin(string user, string password, Action callback = null)
+ /// 数据发送完毕回调函数。注意,结果处理回调请设置OnLoginDone事件
+ /// 成功将请求加入发送队列返回true,否则返回false。
+ public static bool QueueLogin(string user, string password, Action callback = null)
{
JsonLogInfoHead logInfo = new JsonLogInfoHead()
{
@@ -126,6 +126,48 @@ namespace Interact
};
return Send(packet);
}
+
+ ///
+ /// 请求发送一条消息。异步,此方法将请求放入请求队列后返回。
+ ///
+ /// 要发送的消息文本
+ /// 消息接收者
+ /// 数据发送完毕时回调函数
+ /// 成功将请求加入发送队列返回true,否则返回false。
+ public static bool QueueSendMessage(string text, User to, Action callback = null)
+ { return false; }
+ ///
+ /// 请求登出。异步,此方法将请求放入请求队列后返回。
+ ///
+ /// 数据发送完毕时回调函数
+ /// 成功将请求加入发送队列返回true,否则返回false。
+ public static bool QueueLogout(Action callback = null)
+ { return false; }
+ ///
+ /// 请求用户列表。异步,此方法将请求放入请求队列后返回。
+ ///
+ /// 数据发送完毕时回调函数
+ /// 成功将请求加入发送队列返回true,否则返回false。
+
+ public static bool QueueGetUserList(Action callback = null)
+ { return false; }
+ ///
+ /// 请求更新当前登录用户信息。异步,此方法将请求放入请求队列后返回。
+ ///
+ /// 数据发送完毕时回调函数
+ /// 成功将请求加入发送队列返回true,否则返回false。
+
+ public static bool QueueUpdateUserInfo(Action callback = null)
+ { return false; }
+
+ ///
+ /// 请求获取指定用户的头像。异步,此方法将请求放入请求队列后返回。
+ ///
+ /// 要获取头像的用户
+ /// 数据发送完毕时回调函数
+ /// 成功将请求加入发送队列返回true,否则返回false。
+ public static bool QueueGetUserPhoto(User user, Action callback = null)
+ { return false; }
}
}
diff --git a/Interact/Properties/Resources.Designer.cs b/Interact/Properties/Resources.Designer.cs
index b1a5aa2..66f8f97 100644
--- a/Interact/Properties/Resources.Designer.cs
+++ b/Interact/Properties/Resources.Designer.cs
@@ -61,7 +61,7 @@ namespace Interact.Properties {
}
///
- /// Looks up a localized string similar to localhost.
+ /// Looks up a localized string similar to mattuy.top.
///
internal static string RemoteServerAddr {
get {
diff --git a/Interact/Properties/Resources.resx b/Interact/Properties/Resources.resx
index 3029213..f7b9790 100644
--- a/Interact/Properties/Resources.resx
+++ b/Interact/Properties/Resources.resx
@@ -118,7 +118,7 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- localhost
+ mattuy.top
3727