Class TicketNFT
Ticket NFT. Should related to the NFT Event
Implements
Inherited Members
Namespace: VEDriversLite.NFT
Assembly: VEDriversLite.dll
Syntax
public class TicketNFT : CommonNFT, INFT
Constructors
| Improve this Doc View SourceTicketNFT(String)
Create empty NFT class
Declaration
public TicketNFT(string utxo = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | utxo |
Properties
| Improve this Doc View SourceAuthorLink
Author website page
Declaration
public string AuthorLink { get; set; }
Property Value
Type | Description |
---|---|
System.String |
EventAddress
Event Address - where the event NFT is stored
Declaration
public string EventAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
EventDate
Date of the Event
Declaration
public DateTime EventDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
EventId
Event NFT Utxo
Declaration
public string EventId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
EventNFTForTheTicket
Evenf NFT for the ticket
Declaration
[JsonIgnore]
public EventNFT EventNFTForTheTicket { get; set; }
Property Value
Type | Description |
---|---|
EventNFT |
Location
Event location name
Declaration
public string Location { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LocationCoordinates
Event coordinates "Lat,Len"
Declaration
public string LocationCoordinates { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LocationCoordinatesLat
Location coordinate Latitude
Declaration
public double LocationCoordinatesLat { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
LocationCoordinatesLen
Location coordinate Longitude
Declaration
public double LocationCoordinatesLen { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
MintAuthorAddress
Specify author address if different than the mint address
Declaration
public string MintAuthorAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MusicInLink
Music in the Link property
Declaration
public bool MusicInLink { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Seat
Seat on the event
Declaration
public string Seat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TicketClass
Class of the ticket
Declaration
public ClassOfNFTTicket TicketClass { get; set; }
Property Value
Type | Description |
---|---|
ClassOfNFTTicket |
TicketDuration
Duration of the ticket
Declaration
public DurationOfNFTTicket TicketDuration { get; set; }
Property Value
Type | Description |
---|---|
DurationOfNFTTicket |
Used
Indicate if the ticket was used. It goes through all history during load
Declaration
public bool Used { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
VideoLink
Video link
Declaration
public string VideoLink { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceAddUsedTags()
Declaration
public void AddUsedTags()
Fill(INFT)
Fill basic parameters
Declaration
public override async Task Fill(INFT NFT)
Parameters
Type | Name | Description |
---|---|---|
INFT | NFT |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
| Improve this Doc View SourceFillFromEvent(INFT)
Fill the NFT from the NFT Event data. Lots of fields are same
Declaration
public async Task FillFromEvent(INFT NFT)
Parameters
Type | Name | Description |
---|---|---|
INFT | NFT |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
GetLastData()
Get last data of this NFT
Declaration
public async Task GetLastData()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
GetMetadata(String, String, String)
Get the NFT data for the NFT
Declaration
public override async Task<IDictionary<string, string>> GetMetadata(string address = "", string key = "", string receiver = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | address | Address of the sender |
System.String | key | Private key of the sender for encryption |
System.String | receiver | receiver of the NFT |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String, System.String>> |
Overrides
| Improve this Doc View SourceLoadEventNFT()
Get last data for the Event NFT related to this NFT Ticket
Declaration
public async Task LoadEventNFT()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
ParseOriginData(IDictionary<String, String>, GetTransactionInfoResponse)
Find and parse origin data
Declaration
public override async Task ParseOriginData(IDictionary<string, string> lastmetadata, GetTransactionInfoResponse txinfo = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | lastmetadata | |
GetTransactionInfoResponse | txinfo |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
| Improve this Doc View SourceParseSpecific(IDictionary<String, String>)
Parse specific parameters
Declaration
public override void ParseSpecific(IDictionary<string, string> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | metadata |
Overrides
| Improve this Doc View SourceParseTags()
Declaration
public override void ParseTags()