Beispiel #1
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("SquareStatus(");
        bool __first = true;

        if (__isset.memberCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MemberCount: ");
            MemberCount.ToString(sb);
        }
        if (__isset.joinRequestCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("JoinRequestCount: ");
            JoinRequestCount.ToString(sb);
        }
        if (__isset.lastJoinRequestAt)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("LastJoinRequestAt: ");
            LastJoinRequestAt.ToString(sb);
        }
        if (__isset.openChatCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OpenChatCount: ");
            OpenChatCount.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Beispiel #2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.memberCount)
            {
                hashcode = (hashcode * 397) + MemberCount.GetHashCode();
            }
            if (__isset.joinRequestCount)
            {
                hashcode = (hashcode * 397) + JoinRequestCount.GetHashCode();
            }
            if (__isset.lastJoinRequestAt)
            {
                hashcode = (hashcode * 397) + LastJoinRequestAt.GetHashCode();
            }
            if (__isset.openChatCount)
            {
                hashcode = (hashcode * 397) + OpenChatCount.GetHashCode();
            }
        }
        return(hashcode);
    }