2024-05-20 02:16:38 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
2024-05-20 23:40:34 +00:00
|
|
|
|
namespace SharpChat.SockChat.PacketsS2C {
|
2024-05-20 02:16:38 +00:00
|
|
|
|
public abstract class SockChatTimedS2CPacket : SockChatS2CPacket {
|
|
|
|
|
protected readonly DateTimeOffset TimeStamp;
|
|
|
|
|
|
|
|
|
|
public SockChatTimedS2CPacket() : base() {
|
|
|
|
|
TimeStamp = DateTimeOffset.UtcNow;
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-20 02:27:41 +00:00
|
|
|
|
public SockChatTimedS2CPacket(DateTimeOffset timeStamp) : base() {
|
|
|
|
|
TimeStamp = timeStamp;
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-20 02:16:38 +00:00
|
|
|
|
public SockChatTimedS2CPacket(long messageId, DateTimeOffset timeStamp) : base(messageId) {
|
|
|
|
|
TimeStamp = timeStamp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|