Esempio n. 1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.squareMid)
            {
                hashcode = (hashcode * 397) + SquareMid.GetHashCode();
            }
            if (__isset.squareChatMid)
            {
                hashcode = (hashcode * 397) + SquareChatMid.GetHashCode();
            }
            if (__isset.squareMessageId)
            {
                hashcode = (hashcode * 397) + SquareMessageId.GetHashCode();
            }
            if (__isset.reportType)
            {
                hashcode = (hashcode * 397) + ReportType.GetHashCode();
            }
            if (__isset.otherReason)
            {
                hashcode = (hashcode * 397) + OtherReason.GetHashCode();
            }
        }
        return(hashcode);
    }
Esempio n. 2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("ReportSquareMessageRequest(");
        bool __first = true;

        if (SquareMid != null && __isset.squareMid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SquareMid: ");
            SquareMid.ToString(sb);
        }
        if (SquareChatMid != null && __isset.squareChatMid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SquareChatMid: ");
            SquareChatMid.ToString(sb);
        }
        if (SquareMessageId != null && __isset.squareMessageId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SquareMessageId: ");
            SquareMessageId.ToString(sb);
        }
        if (__isset.reportType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ReportType: ");
            ReportType.ToString(sb);
        }
        if (OtherReason != null && __isset.otherReason)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OtherReason: ");
            OtherReason.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }