Пример #1
0
    public override string ToString()
    {
        StringBuilder __sb    = new StringBuilder("Group(");
        bool          __first = true;

        if (Id != null && __isset.id)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Id: ");
            __sb.Append(Id);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("CreatedTime: ");
            __sb.Append(CreatedTime);
        }
        if (Name != null && __isset.name)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Name: ");
            __sb.Append(Name);
        }
        if (PictureStatus != null && __isset.pictureStatus)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("PictureStatus: ");
            __sb.Append(PictureStatus);
        }
        if (__isset.preventedJoinByTicket)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("PreventedJoinByTicket: ");
            __sb.Append(PreventedJoinByTicket);
        }
        if (GroupPreference != null && __isset.groupPreference)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("GroupPreference: ");
            __sb.Append(GroupPreference == null ? "<null>" : GroupPreference.ToString());
        }
        if (Members != null && __isset.members)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Members: ");
            __sb.Append(Members);
        }
        if (Creator != null && __isset.creator)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Creator: ");
            __sb.Append(Creator == null ? "<null>" : Creator.ToString());
        }
        if (Invitee != null && __isset.invitee)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Invitee: ");
            __sb.Append(Invitee);
        }
        if (__isset.notificationDisabled)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("NotificationDisabled: ");
            __sb.Append(NotificationDisabled);
        }
        __sb.Append(")");
        return(__sb.ToString());
    }
Пример #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("Group(");
        bool __first = true;

        if (Id != null && __isset.id)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Id: ");
            Id.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (Name != null && __isset.name)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Name: ");
            Name.ToString(sb);
        }
        if (PictureStatus != null && __isset.pictureStatus)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PictureStatus: ");
            PictureStatus.ToString(sb);
        }
        if (__isset.preventedJoinByTicket)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PreventedJoinByTicket: ");
            PreventedJoinByTicket.ToString(sb);
        }
        if (GroupPreference != null && __isset.groupPreference)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("GroupPreference: ");
            GroupPreference.ToString(sb);
        }
        if (Members != null && __isset.members)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Members: ");
            Members.ToString(sb);
        }
        if (Creator != null && __isset.creator)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Creator: ");
            Creator.ToString(sb);
        }
        if (Invitee != null && __isset.invitee)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Invitee: ");
            Invitee.ToString(sb);
        }
        if (__isset.notificationDisabled)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("NotificationDisabled: ");
            NotificationDisabled.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }