public void Write(TProtocol oprot) { TStruct struc = new TStruct("LoginResponse"); oprot.WriteStructBegin(struc); TField field = new TField(); if (FailSystemInfo != null && __isset.failSystemInfo) { field.Name = "failSystemInfo"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); FailSystemInfo.Write(oprot); oprot.WriteFieldEnd(); } if (PlayerInfo != null && __isset.playerInfo) { field.Name = "playerInfo"; field.Type = TType.Struct; field.ID = 20; oprot.WriteFieldBegin(field); PlayerInfo.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("CreateNewCharResponse"); oprot.WriteStructBegin(struc); TField field = new TField(); if (FailSystemInfo != null && __isset.failSystemInfo) { field.Name = "failSystemInfo"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); FailSystemInfo.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.charId) { field.Name = "charId"; field.Type = TType.I32; field.ID = 20; oprot.WriteFieldBegin(field); oprot.WriteI32(CharId); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }