Exemplo n.º 1
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("FriendChannelMatrix(");
        bool __first = true;

        if (ChannelId != null && __isset.channelId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ChannelId: ");
            ChannelId.ToString(sb);
        }
        if (RepresentMid != null && __isset.representMid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RepresentMid: ");
            RepresentMid.ToString(sb);
        }
        if (__isset.count)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Count: ");
            Count.ToString(sb);
        }
        if (__isset.point)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Point: ");
            Point.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Exemplo n.º 2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.channelId)
            {
                hashcode = (hashcode * 397) + ChannelId.GetHashCode();
            }
            if (__isset.representMid)
            {
                hashcode = (hashcode * 397) + RepresentMid.GetHashCode();
            }
            if (__isset.count)
            {
                hashcode = (hashcode * 397) + Count.GetHashCode();
            }
            if (__isset.point)
            {
                hashcode = (hashcode * 397) + Point.GetHashCode();
            }
        }
        return(hashcode);
    }