public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("CreateSquareChatRequest"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.reqSeq) { field.Name = "reqSeq"; field.Type = TType.I32; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI32(ReqSeq); oprot.WriteFieldEnd(); } if (SquareChat != null && __isset.squareChat) { field.Name = "squareChat"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); SquareChat.Write(oprot); oprot.WriteFieldEnd(); } if (SquareMemberMids != null && __isset.squareMemberMids) { field.Name = "squareMemberMids"; field.Type = TType.List; field.ID = 3; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.String, SquareMemberMids.Count)); foreach (string _iter295 in SquareMemberMids) { oprot.WriteString(_iter295); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("JoinSquareChatResponse"); oprot.WriteStructBegin(struc); TField field = new TField(); if (SquareChat != null && __isset.squareChat) { field.Name = "squareChat"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); SquareChat.Write(oprot); oprot.WriteFieldEnd(); } if (SquareChatStatus != null && __isset.squareChatStatus) { field.Name = "squareChatStatus"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); SquareChatStatus.Write(oprot); oprot.WriteFieldEnd(); } if (SquareChatMember != null && __isset.squareChatMember) { field.Name = "squareChatMember"; field.Type = TType.Struct; field.ID = 3; oprot.WriteFieldBegin(field); SquareChatMember.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }