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/Agency.cs

64 lines
1.4 KiB

6 years ago
using ZeroLevel.Services.Serialization;
namespace ZeroLevel.DocumentObjectModel
{
public class Agency : IBinarySerializable
{
/// <summary>
/// Agency name
6 years ago
/// </summary>
public string Title;
6 years ago
/// <summary>
/// Agency website
6 years ago
/// </summary>
public string Url;
6 years ago
/// <summary>
/// Description
6 years ago
/// </summary>
public string Description;
public Agency()
{
}
public Agency(IBinaryReader reader)
{
Deserialize(reader);
}
public Agency(string title)
{
this.Title = title;
}
public Agency(string title, string url)
{
this.Title = title; this.Url = url;
}
public Agency(string title, string url, string description)
{
this.Title = title; this.Url = url; this.Description = description;
}
6 years ago
#region IBinarySerializable
6 years ago
public void Serialize(IBinaryWriter writer)
{
writer.WriteString(this.Title);
writer.WriteString(this.Url);
writer.WriteString(this.Description);
}
public void Deserialize(IBinaryReader reader)
{
this.Title = reader.ReadString();
this.Url = reader.ReadString();
this.Description = reader.ReadString();
}
#endregion IBinarySerializable
6 years ago
}
}

Powered by TurnKey Linux.