public override string ToString() { var sb = new StringBuilder("MessageBoxV2MessageId("); bool __first = true; if (__isset.deliveredTime) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DeliveredTime: "); DeliveredTime.ToString(sb); } if (__isset.messageId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("MessageId: "); MessageId.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public override string ToString() { var sb = new StringBuilder("Message("); bool __first = true; if (_from != null && __isset._from) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("_from: "); _from.ToString(sb); } if (To != null && __isset.to) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("To: "); To.ToString(sb); } if (__isset.toType) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ToType: "); ToType.ToString(sb); } if (Id != null && __isset.id) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Id: "); Id.ToString(sb); } if (__isset.createdTime) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CreatedTime: "); CreatedTime.ToString(sb); } if (__isset.deliveredTime) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DeliveredTime: "); DeliveredTime.ToString(sb); } if (Text != null && __isset.text) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Text: "); Text.ToString(sb); } if (Location != null && __isset.location) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Location: "); Location.ToString(sb); } if (__isset.hasContent) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("HasContent: "); HasContent.ToString(sb); } if (__isset.contentType) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ContentType: "); ContentType.ToString(sb); } if (ContentPreview != null && __isset.contentPreview) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ContentPreview: "); ContentPreview.ToString(sb); } if (ContentMetadata != null && __isset.contentMetadata) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ContentMetadata: "); ContentMetadata.ToString(sb); } if (__isset.sessionId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SessionId: "); SessionId.ToString(sb); } if (Chunks != null && __isset.chunks) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Chunks: "); Chunks.ToString(sb); } if (RelatedMessageId != null && __isset.relatedMessageId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("RelatedMessageId: "); RelatedMessageId.ToString(sb); } if (__isset.messageRelationType) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("MessageRelationType: "); MessageRelationType.ToString(sb); } if (__isset.readCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ReadCount: "); ReadCount.ToString(sb); } if (__isset.relatedMessageServiceCode) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("RelatedMessageServiceCode: "); RelatedMessageServiceCode.ToString(sb); } sb.Append(")"); return(sb.ToString()); }