16 lines
427 B
C#
16 lines
427 B
C#
|
using System;
|
|||
|
|
|||
|
namespace SharpChat {
|
|||
|
public abstract class SockChatTimedS2CPacket : SockChatS2CPacket {
|
|||
|
protected readonly DateTimeOffset TimeStamp;
|
|||
|
|
|||
|
public SockChatTimedS2CPacket() : base() {
|
|||
|
TimeStamp = DateTimeOffset.UtcNow;
|
|||
|
}
|
|||
|
|
|||
|
public SockChatTimedS2CPacket(long messageId, DateTimeOffset timeStamp) : base(messageId) {
|
|||
|
TimeStamp = timeStamp;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|