using System.Collections.Generic; using ZeroLevel.Services.Serialization; namespace ZeroLevel.Network.SDL { public class ServiceDescription : IBinarySerializable { public ZeroServiceInfo ServiceInfo { get; set; } public IEnumerable 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); } } }