csharp-sdk-upm/RTM/Source/Public/AVIMTemporaryConversation.cs

38 lines
773 B
C#
Raw Normal View History

2019-07-19 15:01:34 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LeanCloud.Realtime
{
/// <summary>
/// Temporary conversation.
/// </summary>
public class AVIMTemporaryConversation : AVIMConversation
{
public DateTime ExpiredAt
{
get
{
if (expiredAt == null)
return DateTime.Now.AddDays(1);
return expiredAt.Value;
}
set
{
expiredAt = value;
}
}
internal AVIMTemporaryConversation(long ttl)
: base(isTemporary: true)
{
this.expiredAt = DateTime.Now.AddDays(1);
}
}
}