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

        if (__isset.freeCoinBalance)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FreeCoinBalance: ");
            FreeCoinBalance.ToString(sb);
        }
        if (__isset.payedCoinBalance)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PayedCoinBalance: ");
            PayedCoinBalance.ToString(sb);
        }
        if (__isset.totalCoinBalance)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("TotalCoinBalance: ");
            TotalCoinBalance.ToString(sb);
        }
        if (__isset.rewardCoinBalance)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RewardCoinBalance: ");
            RewardCoinBalance.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Esempio n. 2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.freeCoinBalance)
            {
                hashcode = (hashcode * 397) + FreeCoinBalance.GetHashCode();
            }
            if (__isset.payedCoinBalance)
            {
                hashcode = (hashcode * 397) + PayedCoinBalance.GetHashCode();
            }
            if (__isset.totalCoinBalance)
            {
                hashcode = (hashcode * 397) + TotalCoinBalance.GetHashCode();
            }
            if (__isset.rewardCoinBalance)
            {
                hashcode = (hashcode * 397) + RewardCoinBalance.GetHashCode();
            }
        }
        return(hashcode);
    }