using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace MoralisUnity.Web3Api.Models
{
[DataContract]
public class TradesCollection
{
///
/// The token id(s) traded
///
[DataMember(Name = "token_ids", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "token_ids")]
public List TokenIds { get; set; }
///
/// The address that sent the NFT
/// example: 0x057Ec652A4F150f7FF94f089A38008f49a0DF88e
///
[DataMember(Name = "from_address", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "from_address")]
public string FromAddress { get; set; }
///
/// The address that recieved the NFT
/// example: 0x057Ec652A4F150f7FF94f089A38008f49a0DF88e
///
[DataMember(Name = "to_address", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "to_address")]
public string ToAddress { get; set; }
///
/// The value that was sent in the transaction (ETH/BNB/etc..)
/// example: 1000000000000000
///
[DataMember(Name = "value", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "value")]
public string Value { get; set; }
///
/// The gas of the transaction
/// example: 6721975
///
[DataMember(Name = "gas", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "gas")]
public string Gas { get; set; }
///
/// The gas price
/// example: 20000000000
///
[DataMember(Name = "gas_price", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "gas_price")]
public string GasPrice { get; set; }
///
/// The receipt cumulative gas used
/// example: 1340925
///
[DataMember(Name = "receipt_cumulative_gas_used", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "receipt_cumulative_gas_used")]
public string ReceiptCumulativeGasUsed { get; set; }
///
/// The receipt gas used
/// example: 1340925
///
[DataMember(Name = "receipt_gas_used", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "receipt_gas_used")]
public string ReceiptGasUsed { get; set; }
///
/// The blocknumber of the transaction
/// example: 88256
///
[DataMember(Name = "block_number", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "block_number")]
public string BlockNumber { get; set; }
///
/// The block timestamp
/// example: 6/4/2021 4:00:15 PM
///
[DataMember(Name = "block_timestamp", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "block_timestamp")]
public string BlockTimestamp { get; set; }
///
/// The transaction hash
/// example: 0x057Ec652A4F150f7FF94f089A38008f49a0DF88e
///
[DataMember(Name = "transaction_hash", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "transaction_hash")]
public string TransactionHash { get; set; }
///
/// The transaction index
///
[DataMember(Name = "transaction_index", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "transaction_index")]
public string TransactionIndex { get; set; }
///
/// Get the string presentation of the object
///
/// String presentation of the object
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class TradesCollection{");
sb.Append(" TokenIds ").Append(TokenIds).Append("\n");
sb.Append(" FromAddress ").Append(FromAddress).Append("\n");
sb.Append(" ToAddress ").Append(ToAddress).Append("\n");
sb.Append(" Value ").Append(Value).Append("\n");
sb.Append(" Gas ").Append(Gas).Append("\n");
sb.Append(" GasPrice ").Append(GasPrice).Append("\n");
sb.Append(" ReceiptCumulativeGasUsed ").Append(ReceiptCumulativeGasUsed).Append("\n");
sb.Append(" ReceiptGasUsed ").Append(ReceiptGasUsed).Append("\n");
sb.Append(" BlockNumber ").Append(BlockNumber).Append("\n");
sb.Append(" BlockTimestamp ").Append(BlockTimestamp).Append("\n");
sb.Append(" TransactionHash ").Append(TransactionHash).Append("\n");
sb.Append(" TransactionIndex ").Append(TransactionIndex).Append("\n");
sb.Append("}");
return sb.ToString();
}
///
/// Get the JSON string presentation of the object
///
/// JSON string presentation of the object
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}