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 NftMetadata
{
///
/// The address of the contract of the NFT
/// example: 0x057Ec652A4F150f7FF94f089A38008f49a0DF88e
///
[DataMember(Name = "token_address", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "token_address")]
public string TokenAddress { get; set; }
///
/// The token id of the NFT
/// example: 15
///
[DataMember(Name = "token_id", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "token_id")]
public string TokenId { get; set; }
///
/// The type of NFT contract standard
/// example: ERC721
///
[DataMember(Name = "contract_type", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "contract_type")]
public string ContractType { get; set; }
///
/// The uri to the metadata of the token
///
[DataMember(Name = "token_uri", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "token_uri")]
public string TokenUri { get; set; }
///
/// The metadata of the token
///
[DataMember(Name = "metadata", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "metadata")]
public string Metadata { get; set; }
///
/// when the metadata was last updated
///
[DataMember(Name = "synced_at", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "synced_at")]
public string SyncedAt { 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 NftMetadata{");
sb.Append(" TokenAddress ").Append(TokenAddress).Append("\n");
sb.Append(" TokenId ").Append(TokenId).Append("\n");
sb.Append(" ContractType ").Append(ContractType).Append("\n");
sb.Append(" TokenUri ").Append(TokenUri).Append("\n");
sb.Append(" Metadata ").Append(Metadata).Append("\n");
sb.Append(" SyncedAt ").Append(SyncedAt).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);
}
}
}