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 TransactionCollection
{
///
/// The total number of matches for this query
/// example: 2000
///
[DataMember(Name = "total", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "total")]
public int? Total { get; set; }
///
/// The page of the current result
/// example: 2
///
[DataMember(Name = "page", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "page")]
public int? Page { get; set; }
///
/// The number of results per page
/// example: 100
///
[DataMember(Name = "page_size", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "page_size")]
public int? PageSize { get; set; }
///
///
[DataMember(Name = "result", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "result")]
public List Result { 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 TransactionCollection{");
sb.Append(" Total ").Append(Total).Append("\n");
sb.Append(" Page ").Append(Page).Append("\n");
sb.Append(" PageSize ").Append(PageSize).Append("\n");
sb.Append(" Result ").Append(Result).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);
}
}
}