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

        if (__isset.memberCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MemberCount: ");
            MemberCount.ToString(sb);
        }
        if (__isset.unreadMessageCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("UnreadMessageCount: ");
            UnreadMessageCount.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Example #2
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());
    }
Example #3
0
 /// <summary>
 /// returns the string representation of the statistics.
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     lock (this)
     {
         System.Text.StringBuilder ret = new System.Text.StringBuilder();
         ret.Append("Cluster[" + base.ToString() + ", Nm:" + GroupName + ", ");
         ret.Append("S:" + ServerCount.ToString() + ", ");
         ret.Append("M:" + MemberCount.ToString() + ", ");
         ret.Append("O:" + OtherCount.ToString() + ", ");
         if (_localNode != null)
         {
             ret.Append("Local" + _localNode.ToString());
         }
         foreach (NodeInfo i in _nodeInfos)
         {
             ret.Append(", " + i.ToString());
         }
         ret.Append("]");
         return(ret.ToString());
     }
 }
Example #4
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("BuddyDetail(");
        bool __first = true;

        if (Mid != null && __isset.mid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Mid: ");
            Mid.ToString(sb);
        }
        if (__isset.memberCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MemberCount: ");
            MemberCount.ToString(sb);
        }
        if (__isset.onAir)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OnAir: ");
            OnAir.ToString(sb);
        }
        if (__isset.businessAccount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("BusinessAccount: ");
            BusinessAccount.ToString(sb);
        }
        if (__isset.addable)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Addable: ");
            Addable.ToString(sb);
        }
        if (AcceptableContentTypes != null && __isset.acceptableContentTypes)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("AcceptableContentTypes: ");
            AcceptableContentTypes.ToString(sb);
        }
        if (__isset.capableMyhome)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CapableMyhome: ");
            CapableMyhome.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }