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

        if (Id != null && __isset.id)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Id: ");
            Id.ToString(sb);
        }
        if (_from != null && __isset._from)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("_from: ");
            _from.ToString(sb);
        }
        if (To != null && __isset.to)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("To: ");
            To.ToString(sb);
        }
        if (FromChannel != null && __isset.fromChannel)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FromChannel: ");
            FromChannel.ToString(sb);
        }
        if (ToChannel != null && __isset.toChannel)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ToChannel: ");
            ToChannel.ToString(sb);
        }
        if (__isset.revision)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Revision: ");
            Revision.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (Content != null && __isset.content)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Content: ");
            Content.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Beispiel #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("NotiCenterEventData(");
        bool __first = true;

        if (Id != null && __isset.id)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Id: ");
            Id.ToString(sb);
        }
        if (To != null && __isset.to)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("To: ");
            To.ToString(sb);
        }
        if (From_ != null && __isset.from_)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("From_: ");
            From_.ToString(sb);
        }
        if (ToChannel != null && __isset.toChannel)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ToChannel: ");
            ToChannel.ToString(sb);
        }
        if (FromChannel != null && __isset.fromChannel)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FromChannel: ");
            FromChannel.ToString(sb);
        }
        if (EventType != null && __isset.eventType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("EventType: ");
            EventType.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (__isset.operationRevision)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OperationRevision: ");
            OperationRevision.ToString(sb);
        }
        if (Content != null && __isset.content)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Content: ");
            Content.ToString(sb);
        }
        if (Push != null && __isset.push)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Push: ");
            Push.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }