using ZeroLevel.Services.Serialization;
namespace ZeroLevel.DocumentObjectModel
{
public class Identifier :
IBinarySerializable
{
public Identifier()
{
}
public Identifier(IBinaryReader reader)
{
Deserialize(reader);
}
#region Fields
///
/// Version
///
public int Version;
///
/// Timestamp ID
///
public long Timestamp;
///
/// Label with day accurcy
///
public string DateLabel;
#endregion Fields
#region IBinarySerializable
public void Serialize(IBinaryWriter writer)
{
writer.WriteInt32(this.Version);
writer.WriteLong(this.Timestamp);
writer.WriteString(this.DateLabel);
}
public void Deserialize(IBinaryReader reader)
{
this.Version = reader.ReadInt32();
this.Timestamp = reader.ReadLong();
this.DateLabel = reader.ReadString();
}
#endregion IBinarySerializable
}
}