csharp-sdk-upm/Realtime/Conversation/LCIMTemporaryConversation.cs

28 lines
594 B
C#
Raw Normal View History

using System;
namespace LeanCloud.Realtime {
/// <summary>
/// 临时对话
/// </summary>
public class LCIMTemporaryConversation : LCIMConversation {
/// <summary>
/// 过期时间
/// </summary>
public DateTime ExpiredAt {
get;
}
/// <summary>
/// 是否过期
/// </summary>
public bool IsExpired {
get {
return DateTime.Now > ExpiredAt;
}
}
2020-03-13 17:22:46 +08:00
public LCIMTemporaryConversation(LCIMClient client) : base(client) {
}
}
}