public override string ToString() { StringBuilder __sb = new StringBuilder("TDDIAbstractArtifactAsset("); bool __first = true; if (UsedArtifactAsset != null && __isset.UsedArtifactAsset) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("UsedArtifactAsset: "); __sb.Append(UsedArtifactAsset == null ? "<null>" : UsedArtifactAsset.ToString()); } if (__isset.UsedArtifactAssetType) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("UsedArtifactAssetType: "); __sb.Append(UsedArtifactAssetType); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDIAbstractArtifactAsset"); oprot.WriteStructBegin(struc); TField field = new TField(); if (UsedArtifactAsset != null && __isset.UsedArtifactAsset) { field.Name = "UsedArtifactAsset"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); UsedArtifactAsset.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.UsedArtifactAssetType) { field.Name = "UsedArtifactAssetType"; field.Type = TType.I32; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteI32((int)UsedArtifactAssetType); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }