public override string ToString() { StringBuilder __sb = new StringBuilder("ComputeIK_args("); bool __first = true; if (PostureValues != null && __isset.postureValues) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("PostureValues: "); __sb.Append(PostureValues == null ? "<null>" : PostureValues.ToString()); } if (Properties != null && __isset.properties) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Properties: "); __sb.Append(Properties); } __sb.Append(")"); return(__sb.ToString()); }
public override string ToString() { StringBuilder __sb = new StringBuilder("MAvatarUpdate("); __sb.Append(", ID: "); __sb.Append(ID); if (PostureValues != null && __isset.PostureValues) { __sb.Append(", PostureValues: "); __sb.Append(PostureValues == null ? "<null>" : PostureValues.ToString()); } if (SceneObjects != null && __isset.SceneObjects) { __sb.Append(", SceneObjects: "); __sb.Append(SceneObjects); } if (Description != null && __isset.Description) { __sb.Append(", Description: "); __sb.Append(Description == null ? "<null>" : Description.ToString()); } if (Properties != null && __isset.Properties) { __sb.Append(", Properties: "); __sb.Append(Properties); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("CalculateIKPosture_args"); oprot.WriteStructBegin(struc); TField field = new TField(); if (PostureValues != null && __isset.postureValues) { field.Name = "postureValues"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); PostureValues.Write(oprot); oprot.WriteFieldEnd(); } if (Constraints != null && __isset.constraints) { field.Name = "constraints"; field.Type = TType.List; field.ID = 2; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Constraints.Count)); foreach (MMIStandard.MConstraint _iter101 in Constraints) { _iter101.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Properties != null && __isset.properties) { field.Name = "properties"; field.Type = TType.Map; field.ID = 3; oprot.WriteFieldBegin(field); { oprot.WriteMapBegin(new TMap(TType.String, TType.String, Properties.Count)); foreach (string _iter102 in Properties.Keys) { oprot.WriteString(_iter102); oprot.WriteString(Properties[_iter102]); } oprot.WriteMapEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("ComputeIK_args"); oprot.WriteStructBegin(struc); TField field = new TField(); if (PostureValues != null && __isset.postureValues) { field.Name = "postureValues"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); PostureValues.Write(oprot); oprot.WriteFieldEnd(); } if (Properties != null && __isset.properties) { field.Name = "properties"; field.Type = TType.List; field.ID = 2; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Properties.Count)); foreach (MIKProperty _iter93 in Properties) { _iter93.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("MAvatarUpdate"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ID == null) { throw new TProtocolException(TProtocolException.INVALID_DATA, "required field ID not set"); } field.Name = "ID"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(ID); oprot.WriteFieldEnd(); if (PostureValues != null && __isset.PostureValues) { field.Name = "PostureValues"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); PostureValues.Write(oprot); oprot.WriteFieldEnd(); } if (SceneObjects != null && __isset.SceneObjects) { field.Name = "SceneObjects"; field.Type = TType.List; field.ID = 3; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.String, SceneObjects.Count)); foreach (string _iter172 in SceneObjects) { oprot.WriteString(_iter172); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.Struct; field.ID = 4; oprot.WriteFieldBegin(field); Description.Write(oprot); oprot.WriteFieldEnd(); } if (Properties != null && __isset.Properties) { field.Name = "Properties"; field.Type = TType.List; field.ID = 5; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Properties.Count)); foreach (MPropertyUpdate _iter173 in Properties) { _iter173.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("MAvatar"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ID == null) { throw new TProtocolException(TProtocolException.INVALID_DATA, "required field ID not set"); } field.Name = "ID"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(ID); oprot.WriteFieldEnd(); if (Name == null) { throw new TProtocolException(TProtocolException.INVALID_DATA, "required field Name not set"); } field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); if (Description == null) { throw new TProtocolException(TProtocolException.INVALID_DATA, "required field Description not set"); } field.Name = "Description"; field.Type = TType.Struct; field.ID = 3; oprot.WriteFieldBegin(field); Description.Write(oprot); oprot.WriteFieldEnd(); if (PostureValues == null) { throw new TProtocolException(TProtocolException.INVALID_DATA, "required field PostureValues not set"); } field.Name = "PostureValues"; field.Type = TType.Struct; field.ID = 4; oprot.WriteFieldBegin(field); PostureValues.Write(oprot); oprot.WriteFieldEnd(); if (SceneObjects != null && __isset.SceneObjects) { field.Name = "SceneObjects"; field.Type = TType.List; field.ID = 5; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.String, SceneObjects.Count)); foreach (string _iter37 in SceneObjects) { oprot.WriteString(_iter37); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Properties != null && __isset.Properties) { field.Name = "Properties"; field.Type = TType.Map; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteMapBegin(new TMap(TType.String, TType.String, Properties.Count)); foreach (string _iter38 in Properties.Keys) { oprot.WriteString(_iter38); oprot.WriteString(Properties[_iter38]); } oprot.WriteMapEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }