* LCIMSignature.cs:

* LCIMSignatureAction.cs: chore: 签名相关注释
oneRain 2020-04-20 13:38:14 +08:00
parent 50120e181f
commit 816e735968
2 changed files with 34 additions and 7 deletions

View File

@ -1,19 +1,27 @@
namespace LeanCloud.Realtime {
/// <summary>
/// 签名数据
/// </summary>
public class LCIMSignature {
/// <summary>
/// 签名
/// </summary>
public string Signature {
get; set;
}
/// <summary>
/// 时间戳
/// </summary>
public long Timestamp {
get; set;
}
/// <summary>
/// 随机字符串
/// </summary>
public string Nonce {
get; set;
}
public LCIMSignature() {
}
}
}

View File

@ -1,17 +1,36 @@
namespace LeanCloud.Realtime {
/// <summary>
/// 支持签名的动作
/// </summary>
public static class LCIMSignatureAction {
// 邀请
/// <summary>
/// 邀请
/// </summary>
public const string Invite = "invite";
// 踢出
/// <summary>
/// 踢出
/// </summary>
public const string Kick = "kick";
//
/// <summary>
/// 用户拉黑对话
/// </summary>
public const string ClientBlockConversations = "client-block-conversations";
/// <summary>
/// 用户解除拉黑对话
/// </summary>
public const string ClientUnblockConversations = "client-unblock-conversations";
/// <summary>
/// 对话拉黑用户
/// </summary>
public const string ConversationBlockClients = "conversation-block-clients";
/// <summary>
/// 对话解除拉黑用户
/// </summary>
public const string ConversationUnblockClients = "conversation-unblock-clients";
}
}