public override string ToString()
    {
        var  sb      = new StringBuilder("SquareChatStatus(");
        bool __first = true;

        if (LastMessage != null && __isset.lastMessage)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("LastMessage: ");
            LastMessage.ToString(sb);
        }
        if (SenderDisplayName != null && __isset.senderDisplayName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SenderDisplayName: ");
            SenderDisplayName.ToString(sb);
        }
        if (OtherStatus != null && __isset.otherStatus)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OtherStatus: ");
            OtherStatus.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Exemple #2
0
    public override string ToString()
    {
        StringBuilder __sb    = new StringBuilder("SquareChatStatus(");
        bool          __first = true;

        if (LastMessage != null && __isset.lastMessage)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("LastMessage: ");
            __sb.Append(LastMessage == null ? "<null>" : LastMessage.ToString());
        }
        if (SenderDisplayName != null && __isset.senderDisplayName)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("SenderDisplayName: ");
            __sb.Append(SenderDisplayName);
        }
        if (OtherStatus != null && __isset.otherStatus)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("OtherStatus: ");
            __sb.Append(OtherStatus == null ? "<null>" : OtherStatus.ToString());
        }
        __sb.Append(")");
        return(__sb.ToString());
    }