using System.Collections.Generic; using ZeroLevel.Services.Serialization; namespace ZeroLevel.Network.SDL { public class ServiceDescription : IBinarySerializable { public ZeroServiceInfo ServiceInfo { get; set; } public List Inboxes { get; set; } public void Deserialize(IBinaryReader reader) { this.ServiceInfo = reader.Read(); this.Inboxes = reader.ReadCollection(); } public void Serialize(IBinaryWriter writer) { writer.Write(this.ServiceInfo); writer.WriteCollection(this.Inboxes); } } }