sharp-chat/SharpChat/PacketsS2C/SockChatTimedS2CPacket.cs

19 lines
559 B
C#

using System;
namespace SharpChat.PacketsS2C {
public abstract class SockChatTimedS2CPacket : SockChatS2CPacket {
protected readonly DateTimeOffset TimeStamp;
public SockChatTimedS2CPacket() : base() {
TimeStamp = DateTimeOffset.UtcNow;
}
public SockChatTimedS2CPacket(DateTimeOffset timeStamp) : base() {
TimeStamp = timeStamp;
}
public SockChatTimedS2CPacket(long messageId, DateTimeOffset timeStamp) : base(messageId) {
TimeStamp = timeStamp;
}
}
}