public Packet SetTimestamp(Timestamp timestamp) { Timestamp = new HeaderProperty <Timestamp>(timestamp, "timestamp", true); return(this); }
public Packet(Operation operation, Status status, Guid sessionId, int clientId, Timestamp timestamp = null) { SetOperation(operation); SetStatus(status); SetClientId(clientId); SetSessionId(sessionId); if (timestamp == null) { timestamp = new Timestamp(DateTime.UtcNow); } SetTimestamp(timestamp); DestinationId = new HeaderProperty <int>(); SourceId = new HeaderProperty <int>(); Message = new HeaderProperty <string>(); }