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

        if (__isset.favoriteTimestamp)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FavoriteTimestamp: ");
            FavoriteTimestamp.ToString(sb);
        }
        if (__isset.notiForNewJoinRequest)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("NotiForNewJoinRequest: ");
            NotiForNewJoinRequest.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Exemplo n.º 2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.favoriteTimestamp)
            {
                hashcode = (hashcode * 397) + FavoriteTimestamp.GetHashCode();
            }
            if (__isset.notiForNewJoinRequest)
            {
                hashcode = (hashcode * 397) + NotiForNewJoinRequest.GetHashCode();
            }
        }
        return(hashcode);
    }