Ejemplo n.º 1
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("SquareEventNotificationJoinRequest(");
        bool __first = true;

        if (SquareMid != null && __isset.squareMid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SquareMid: ");
            SquareMid.ToString(sb);
        }
        if (SquareName != null && __isset.squareName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SquareName: ");
            SquareName.ToString(sb);
        }
        if (RequestMemberName != null && __isset.requestMemberName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RequestMemberName: ");
            RequestMemberName.ToString(sb);
        }
        if (ProfileImageObsHash != null && __isset.profileImageObsHash)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ProfileImageObsHash: ");
            ProfileImageObsHash.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Ejemplo n.º 2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.squareMid)
            {
                hashcode = (hashcode * 397) + SquareMid.GetHashCode();
            }
            if (__isset.squareName)
            {
                hashcode = (hashcode * 397) + SquareName.GetHashCode();
            }
            if (__isset.requestMemberName)
            {
                hashcode = (hashcode * 397) + RequestMemberName.GetHashCode();
            }
            if (__isset.profileImageObsHash)
            {
                hashcode = (hashcode * 397) + ProfileImageObsHash.GetHashCode();
            }
        }
        return(hashcode);
    }