public static void Serialize(Stream stream, UnsubscribeRequest instance)
 {
     stream.WriteByte(8);
     ProtocolParser.WriteUInt64(stream, instance.SubscriptionId);
 }
 public static UnsubscribeRequest Deserialize(Stream stream, UnsubscribeRequest instance)
 {
     return(UnsubscribeRequest.Deserialize(stream, instance, -1L));
 }
 public void Serialize(Stream stream)
 {
     UnsubscribeRequest.Serialize(stream, this);
 }
        public override bool Equals(object obj)
        {
            UnsubscribeRequest unsubscribeRequest = obj as UnsubscribeRequest;

            return(unsubscribeRequest != null && this.SubscriptionId.Equals(unsubscribeRequest.SubscriptionId));
        }