public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.id)
            {
                hashcode = (hashcode * 397) + Id.GetHashCode();
            }
            if (__isset.to)
            {
                hashcode = (hashcode * 397) + To.GetHashCode();
            }
            if (__isset.from_)
            {
                hashcode = (hashcode * 397) + From_.GetHashCode();
            }
            if (__isset.toChannel)
            {
                hashcode = (hashcode * 397) + ToChannel.GetHashCode();
            }
            if (__isset.fromChannel)
            {
                hashcode = (hashcode * 397) + FromChannel.GetHashCode();
            }
            if (__isset.eventType)
            {
                hashcode = (hashcode * 397) + EventType.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.operationRevision)
            {
                hashcode = (hashcode * 397) + OperationRevision.GetHashCode();
            }
            if (__isset.content)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Content);
            }
            if (__isset.push)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Push);
            }
        }
        return(hashcode);
    }
示例#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());
    }