Пример #1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.productType)
            {
                hashcode = (hashcode * 397) + ProductType.GetHashCode();
            }
            if (__isset.productName)
            {
                hashcode = (hashcode * 397) + ProductName.GetHashCode();
            }
            if (__isset.unit)
            {
                hashcode = (hashcode * 397) + Unit.GetHashCode();
            }
            if (__isset.limitedPaidBalance)
            {
                hashcode = (hashcode * 397) + LimitedPaidBalance.GetHashCode();
            }
            if (__isset.limitedFreeBalance)
            {
                hashcode = (hashcode * 397) + LimitedFreeBalance.GetHashCode();
            }
            if (__isset.unlimitedPaidBalance)
            {
                hashcode = (hashcode * 397) + UnlimitedPaidBalance.GetHashCode();
            }
            if (__isset.unlimitedFreeBalance)
            {
                hashcode = (hashcode * 397) + UnlimitedFreeBalance.GetHashCode();
            }
            if (__isset.startTime)
            {
                hashcode = (hashcode * 397) + StartTime.GetHashCode();
            }
            if (__isset.endTime)
            {
                hashcode = (hashcode * 397) + EndTime.GetHashCode();
            }
            if (__isset.autopayEnabled)
            {
                hashcode = (hashcode * 397) + AutopayEnabled.GetHashCode();
            }
        }
        return(hashcode);
    }
Пример #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("PaidCallBalance(");
        bool __first = true;

        if (__isset.productType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ProductType: ");
            ProductType.ToString(sb);
        }
        if (ProductName != null && __isset.productName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ProductName: ");
            ProductName.ToString(sb);
        }
        if (Unit != null && __isset.unit)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Unit: ");
            Unit.ToString(sb);
        }
        if (__isset.limitedPaidBalance)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("LimitedPaidBalance: ");
            LimitedPaidBalance.ToString(sb);
        }
        if (__isset.limitedFreeBalance)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("LimitedFreeBalance: ");
            LimitedFreeBalance.ToString(sb);
        }
        if (__isset.unlimitedPaidBalance)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("UnlimitedPaidBalance: ");
            UnlimitedPaidBalance.ToString(sb);
        }
        if (__isset.unlimitedFreeBalance)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("UnlimitedFreeBalance: ");
            UnlimitedFreeBalance.ToString(sb);
        }
        if (__isset.startTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("StartTime: ");
            StartTime.ToString(sb);
        }
        if (__isset.endTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("EndTime: ");
            EndTime.ToString(sb);
        }
        if (__isset.autopayEnabled)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("AutopayEnabled: ");
            AutopayEnabled.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }