public override string ToString() { var sb = new StringBuilder("CoinPayLoad("); bool __first = true; if (__isset.payCoin) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PayCoin: "); PayCoin.ToString(sb); } if (__isset.freeCoin) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("FreeCoin: "); FreeCoin.ToString(sb); } if (__isset.type) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Type: "); Type.ToString(sb); } if (__isset.rewardCoin) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("RewardCoin: "); RewardCoin.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.itemId) { hashcode = (hashcode * 397) + ItemId.GetHashCode(); } if (__isset.coin) { hashcode = (hashcode * 397) + Coin.GetHashCode(); } if (__isset.freeCoin) { hashcode = (hashcode * 397) + FreeCoin.GetHashCode(); } if (__isset.currency) { hashcode = (hashcode * 397) + Currency.GetHashCode(); } if (__isset.price) { hashcode = (hashcode * 397) + Price.GetHashCode(); } if (__isset.displayPrice) { hashcode = (hashcode * 397) + DisplayPrice.GetHashCode(); } if (__isset.name) { hashcode = (hashcode * 397) + Name.GetHashCode(); } if (__isset.desc) { hashcode = (hashcode * 397) + Desc.GetHashCode(); } } return(hashcode); }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.payCoin) { hashcode = (hashcode * 397) + PayCoin.GetHashCode(); } if (__isset.freeCoin) { hashcode = (hashcode * 397) + FreeCoin.GetHashCode(); } if (__isset.type) { hashcode = (hashcode * 397) + Type.GetHashCode(); } if (__isset.rewardCoin) { hashcode = (hashcode * 397) + RewardCoin.GetHashCode(); } } return(hashcode); }
public override string ToString() { var sb = new StringBuilder("CoinProductItem("); bool __first = true; if (ItemId != null && __isset.itemId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ItemId: "); ItemId.ToString(sb); } if (__isset.coin) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Coin: "); Coin.ToString(sb); } if (__isset.freeCoin) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("FreeCoin: "); FreeCoin.ToString(sb); } if (Currency != null && __isset.currency) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Currency: "); Currency.ToString(sb); } if (Price != null && __isset.price) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Price: "); Price.ToString(sb); } if (DisplayPrice != null && __isset.displayPrice) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayPrice: "); DisplayPrice.ToString(sb); } if (Name != null && __isset.name) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Name: "); Name.ToString(sb); } if (Desc != null && __isset.desc) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Desc: "); Desc.ToString(sb); } sb.Append(")"); return(sb.ToString()); }