예제 #1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.mid)
            {
                hashcode = (hashcode * 397) + Mid.GetHashCode();
            }
            if (__isset.freshnessLifetime)
            {
                hashcode = (hashcode * 397) + FreshnessLifetime.GetHashCode();
            }
            if (__isset.onAirId)
            {
                hashcode = (hashcode * 397) + OnAirId.GetHashCode();
            }
            if (__isset.onAir)
            {
                hashcode = (hashcode * 397) + OnAir.GetHashCode();
            }
            if (__isset.text)
            {
                hashcode = (hashcode * 397) + Text.GetHashCode();
            }
            if (__isset.viewerCount)
            {
                hashcode = (hashcode * 397) + ViewerCount.GetHashCode();
            }
            if (__isset.targetCount)
            {
                hashcode = (hashcode * 397) + TargetCount.GetHashCode();
            }
            if (__isset.onAirType)
            {
                hashcode = (hashcode * 397) + OnAirType.GetHashCode();
            }
            if (__isset.onAirUrls)
            {
                hashcode = (hashcode * 397) + OnAirUrls.GetHashCode();
            }
        }
        return(hashcode);
    }
예제 #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("BuddyOnAir(");
        bool __first = true;

        if (Mid != null && __isset.mid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Mid: ");
            Mid.ToString(sb);
        }
        if (__isset.freshnessLifetime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FreshnessLifetime: ");
            FreshnessLifetime.ToString(sb);
        }
        if (OnAirId != null && __isset.onAirId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OnAirId: ");
            OnAirId.ToString(sb);
        }
        if (__isset.onAir)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OnAir: ");
            OnAir.ToString(sb);
        }
        if (Text != null && __isset.text)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Text: ");
            Text.ToString(sb);
        }
        if (__isset.viewerCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ViewerCount: ");
            ViewerCount.ToString(sb);
        }
        if (__isset.targetCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("TargetCount: ");
            TargetCount.ToString(sb);
        }
        if (__isset.onAirType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OnAirType: ");
            OnAirType.ToString(sb);
        }
        if (OnAirUrls != null && __isset.onAirUrls)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OnAirUrls: ");
            OnAirUrls.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }