public override string ToString() { StringBuilder __sb = new StringBuilder("SmartTransInfo("); bool __first = true; if (V_tokenDeploy != null && __isset.v_tokenDeploy) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("V_tokenDeploy: "); __sb.Append(V_tokenDeploy == null ? "<null>" : V_tokenDeploy.ToString()); } if (V_tokenTransfer != null && __isset.v_tokenTransfer) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("V_tokenTransfer: "); __sb.Append(V_tokenTransfer == null ? "<null>" : V_tokenTransfer.ToString()); } if (V_smartDeploy != null && __isset.v_smartDeploy) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("V_smartDeploy: "); __sb.Append(V_smartDeploy == null ? "<null>" : V_smartDeploy.ToString()); } if (V_smartExecution != null && __isset.v_smartExecution) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("V_smartExecution: "); __sb.Append(V_smartExecution == null ? "<null>" : V_smartExecution.ToString()); } if (V_smartState != null && __isset.v_smartState) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("V_smartState: "); __sb.Append(V_smartState == null ? "<null>" : V_smartState.ToString()); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("SmartTransInfo"); oprot.WriteStructBegin(struc); TField field = new TField(); if (V_tokenDeploy != null && __isset.v_tokenDeploy) { field.Name = "v_tokenDeploy"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); V_tokenDeploy.Write(oprot); oprot.WriteFieldEnd(); } if (V_tokenTransfer != null && __isset.v_tokenTransfer) { field.Name = "v_tokenTransfer"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); V_tokenTransfer.Write(oprot); oprot.WriteFieldEnd(); } if (V_smartDeploy != null && __isset.v_smartDeploy) { field.Name = "v_smartDeploy"; field.Type = TType.Struct; field.ID = 3; oprot.WriteFieldBegin(field); V_smartDeploy.Write(oprot); oprot.WriteFieldEnd(); } if (V_smartExecution != null && __isset.v_smartExecution) { field.Name = "v_smartExecution"; field.Type = TType.Struct; field.ID = 4; oprot.WriteFieldBegin(field); V_smartExecution.Write(oprot); oprot.WriteFieldEnd(); } if (V_smartState != null && __isset.v_smartState) { field.Name = "v_smartState"; field.Type = TType.Struct; field.ID = 5; oprot.WriteFieldBegin(field); V_smartState.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }