public override string ToString() { var sb = new StringBuilder("ContactTransition("); bool __first = true; if (OwnerMid != null && __isset.ownerMid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("OwnerMid: "); OwnerMid.ToString(sb); } if (TargetMid != null && __isset.targetMid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("TargetMid: "); TargetMid.ToString(sb); } if (__isset.previousStatus) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PreviousStatus: "); PreviousStatus.ToString(sb); } if (__isset.resultStatus) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ResultStatus: "); ResultStatus.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.ownerMid) { hashcode = (hashcode * 397) + OwnerMid.GetHashCode(); } if (__isset.targetMid) { hashcode = (hashcode * 397) + TargetMid.GetHashCode(); } if (__isset.previousStatus) { hashcode = (hashcode * 397) + PreviousStatus.GetHashCode(); } if (__isset.resultStatus) { hashcode = (hashcode * 397) + ResultStatus.GetHashCode(); } } return(hashcode); }