You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/DOM/Model/Assotiation.cs

53 lines
1.3 KiB

6 years ago
using System;
using ZeroLevel.Services.Serialization;
namespace ZeroLevel.DocumentObjectModel
{
public sealed class Assotiation :
6 years ago
IBinarySerializable
{
#region Fields
6 years ago
/// <summary>
/// Title
6 years ago
/// </summary>
public string Title;
6 years ago
/// <summary>
/// Description
6 years ago
/// </summary>
public string Description;
6 years ago
/// <summary>
/// Binded document reference
6 years ago
/// </summary>
public Guid DocumentId;
6 years ago
/// <summary>
/// Relation type
6 years ago
/// </summary>
public AssotiationRelation Relation;
#endregion Fields
6 years ago
#region IBinarySerializable
6 years ago
public void Serialize(IBinaryWriter writer)
{
writer.WriteString(this.Title);
writer.WriteString(this.Description);
writer.WriteGuid(this.DocumentId);
writer.WriteInt32((Int32)this.Relation);
}
public void Deserialize(IBinaryReader reader)
{
this.Title = reader.ReadString();
this.Description = reader.ReadString();
this.DocumentId = reader.ReadGuid();
this.Relation = (AssotiationRelation)reader.ReadInt32();
}
#endregion IBinarySerializable
6 years ago
}
}

Powered by TurnKey Linux.