2020-03-17 16:17:19 +08:00
|
|
|
|
namespace LeanCloud.Realtime {
|
2020-03-12 16:23:21 +08:00
|
|
|
|
public class LCIMConversationMemberInfo {
|
2020-03-17 16:17:19 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 群主
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Owner = "Owner";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 管理员
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Manager = "Manager";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 成员
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Member = "Member";
|
|
|
|
|
|
2020-03-12 16:23:21 +08:00
|
|
|
|
public string ConversationId {
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string MemberId {
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-17 16:17:19 +08:00
|
|
|
|
public string Role {
|
2020-03-12 16:23:21 +08:00
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-17 16:17:19 +08:00
|
|
|
|
public bool IsOwner {
|
|
|
|
|
get {
|
|
|
|
|
return Role == Owner;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsManager {
|
|
|
|
|
get {
|
|
|
|
|
return Role == Manager;
|
|
|
|
|
}
|
2020-03-12 16:23:21 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|