Generated by DocFX

Class CommonNFT

Common NFT class. It implements lots of functions for the parsing the basic parameter of the NFT. It contains also functions to decrypt or encrypt the property

Inheritance
System.Object
CommonNFT
AppNFT
CommonCoruzantNFT
DeviceNFT
FWSrcNFT
HWSrcNFT
IoTDeviceNFT
IoTMessageNFT
MechSrcNFT
ProtocolNFT
SWSrcNFT
EventNFT
ImageNFT
XrayImageNFT
XrayNFT
InvoiceNFT
MessageNFT
MusicNFT
OrderNFT
PaymentNFT
PostNFT
ProductNFT
ProfileNFT
ReceiptNFT
TicketNFT
Implements
INFT
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VEDriversLite.NFT
Assembly: VEDriversLite.dll
Syntax
public abstract class CommonNFT : INFT

Properties

| Improve this Doc View Source

Author

Author of the NFT

Declaration
public string Author { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Base64Data

Loaded Image data as base64 string

Declaration
[JsonIgnore]
public string Base64Data { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

DataItems

More items in the NFT, for example Image gallery with more images than one Probably future replacement of the "ImageLink" property

Declaration
public List<NFTDataItem> DataItems { get; set; }
Property Value
Type Description
System.Collections.Generic.List<NFTDataItem>
| Improve this Doc View Source

Description

Description of the NFT - for longer text please use the "Text" property

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

DogeAddress

Related Doge Address to this NFT. If it is created by VENFT App it is filled automatically during the minting request

Declaration
public string DogeAddress { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

DogeftInfo

Info for publishing NFT to the Dogeft

Declaration
public DogeftInfo DogeftInfo { get; set; }
Property Value
Type Description
DogeftInfo
| Improve this Doc View Source

DogePrice

Price of the NFT in the Dogecoin

Declaration
public double DogePrice { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

DogePriceActive

DogePriceActive is setted automatically when the price is setted up

Declaration
public bool DogePriceActive { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

History

History of this NFT

Declaration
[JsonIgnore]
public List<INFT> History { get; set; }
Property Value
Type Description
System.Collections.Generic.List<INFT>
| Improve this Doc View Source

IconLink

Link to the icon of the NFT

Declaration
public string IconLink { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ImageData

Loaded Image data as byte array

Declaration
[JsonIgnore]
public byte[] ImageData { get; set; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

ImageLink

Link to the image in the NFT

Declaration
public string ImageLink { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

IsInThePayments

If the NFT is alredy saw in the payment this is set

Declaration
public bool IsInThePayments { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsLoaded

If the NFT is fully loaded this flag is set

Declaration
public bool IsLoaded { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Link

Link to some webiste in the NFT

Declaration
public string Link { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Name

Name of the NFT

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

NFTOriginTxId

NFT Origin transaction hash - minting transaction in the case of original NFTs (Image, Music, Ticket)

Declaration
public string NFTOriginTxId { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Preview

Preview data of image or music

Declaration
public string Preview { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

PreviewData

Loaded Image Preview data as byte array

Declaration
[JsonIgnore]
public byte[] PreviewData { get; set; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

Price

Price of the NFT in the Neblio

Declaration
public double Price { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

PriceActive

PriceActive is setted automatically when the price is setted up

Declaration
public bool PriceActive { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SellJustCopy

Set that this NFT will be sold as just in coppies minted for the buyer

Declaration
public bool SellJustCopy { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ShortHash

Shorten hash including index number

Declaration
public string ShortHash { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

SoldInfo

If the NFT is sold this will be filled

Declaration
public NFTSoldInfo SoldInfo { get; set; }
Property Value
Type Description
NFTSoldInfo
| Improve this Doc View Source

SourceTxId

Source tx where the input for the NFT Minting was taken

Declaration
public string SourceTxId { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Tags

List of the tags separated by space

Declaration
public string Tags { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

TagsList

Parsed tag list. It is parsed in Common NFT class

Declaration
public List<string> TagsList { get; set; }
Property Value
Type Description
System.Collections.Generic.List<System.String>
| Improve this Doc View Source

Text

Text of the NFT - prepared for the longer texts

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Time

DateTime stamp taken from the blockchain trnsaction

Declaration
public DateTime Time { get; set; }
Property Value
Type Description
System.DateTime
| Improve this Doc View Source

TokenId

Id of the token on what the NFT is created

Declaration
public string TokenId { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

TxDetails

The transaction info details

Declaration
[JsonIgnore]
public GetTransactionInfoResponse TxDetails { get; set; }
Property Value
Type Description
GetTransactionInfoResponse
| Improve this Doc View Source

Type

NFT Type by enum of NFTTypes

Declaration
public NFTTypes Type { get; set; }
Property Value
Type Description
NFTTypes
| Improve this Doc View Source

TypeText

Text form of the NFT type like "NFT Image" or "NFT Post" The parsing is in the Common NFT

Declaration
public string TypeText { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Utxo

NFT Utxo hash

Declaration
public string Utxo { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

UtxoIndex

NFT Utxo Index

Declaration
public int UtxoIndex { get; set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

ClearPrices()

Clear all the prices inside of the NFT

Declaration
public async Task ClearPrices()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

ClearSoldInfo()

Clear the object with SoldInfo of NFT

Declaration
public async Task ClearSoldInfo()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

DecryptImageData(BitcoinSecret, String, String, String)

This function will download the data from the IPFS then decrypt the encrypted file container with use of shared secret. Then the image is saved in ImageData as bytes.

Declaration
public virtual async Task<(bool, byte[])> DecryptImageData(BitcoinSecret secret, string imageLink, string partner, string sharedkey = "")
Parameters
Type Name Description
NBitcoin.BitcoinSecret secret

NFT Owner Private Key

System.String imageLink
System.String partner
System.String sharedkey
Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.Byte[]>>
| Improve this Doc View Source

DecryptProperty(String, BitcoinSecret, String, String, String)

Decrypt the specific property with use of shared secret

Declaration
public virtual async Task<string> DecryptProperty(string prop, BitcoinSecret secret, string address = "", string partner = "", string sharedkey = "")
Parameters
Type Name Description
System.String prop

Property content

NBitcoin.BitcoinSecret secret

NFT Owner Private Key

System.String address
System.String partner
System.String sharedkey
Returns
Type Description
System.Threading.Tasks.Task<System.String>
| Improve this Doc View Source

DownloadImageData()

Download Image data if there are some

Declaration
public virtual async Task<bool> DownloadImageData()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

true if success

| Improve this Doc View Source

DownloadPreviewData()

Download preview data if there are some

Declaration
public virtual async Task<bool> DownloadPreviewData()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

true if success

| Improve this Doc View Source

Fill(INFT)

Fill common and specific properties of the NFT

Declaration
public abstract Task Fill(INFT NFT)
Parameters
Type Name Description
INFT NFT
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

FillCommon(INFT)

Fill common properties for the NFT

Declaration
public async Task FillCommon(INFT nft)
Parameters
Type Name Description
INFT nft
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

GetCommonMetadata()

Get common metadata of the NFT as dictionary

Declaration
public async Task<IDictionary<string, string>> GetCommonMetadata()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String, System.String>>

Dicrionary with preapred common metadata for the NFT transaction

| Improve this Doc View Source

GetMetadata(String, String, String)

Retrive the Metadata of the actual NFT. It will take the correct properties and translate them to the dictionary which can be add to the token transaction metdata If the NFT contains encrypted metadata with use of Shared Secret (EDCH) like NFT Message you must provide the parameters if you need to do encryption

Declaration
public abstract Task<IDictionary<string, string>> GetMetadata(string address = "", string key = "", string receiver = "")
Parameters
Type Name Description
System.String address

Address of the sender of the NFT

System.String key

Private key of the sender of the NFT

System.String receiver

Receiver of the NFT

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String, System.String>>
| Improve this Doc View Source

IsSpendable()

Return info if the transaction is spendable

Declaration
public bool IsSpendable()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

LoadHistory()

Load NFT history. It will load fully all history steps of this NFT

Declaration
public async Task LoadHistory()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

LoadLastData(IDictionary<String, String>)

Load last data of the NFT. It means that it will take just the last data and not tracking the origin for the orign data

Declaration
public async Task LoadLastData(IDictionary<string, string> metadata)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.String> metadata
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

ParseCommon(IDictionary<String, String>)

Parse common properties from the dictionary of metadata

Declaration
public void ParseCommon(IDictionary<string, string> meta)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.String> meta
| Improve this Doc View Source

ParseDogeftInfo(IDictionary<String, String>)

Parse dogeft info from the metadata

Declaration
public async Task ParseDogeftInfo(IDictionary<string, string> meta)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.String> meta
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

ParseOriginData(IDictionary<String, String>, GetTransactionInfoResponse)

Parse the origin data of the NFT. It will track the NFT to its origin and use the data from the origin

Declaration
public abstract 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
| Improve this Doc View Source

ParsePrice(IDictionary<String, String>)

Parse price from the metadata of the NFT

Declaration
public void ParsePrice(IDictionary<string, string> meta)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.String> meta
| Improve this Doc View Source

ParseSoldInfo(IDictionary<String, String>)

Parse info about the sellfrom the metadata of the NFT

Declaration
public void ParseSoldInfo(IDictionary<string, string> meta)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.String> meta
| Improve this Doc View Source

ParseSpecific(IDictionary<String, String>)

Parse specific information related to the specific kind of the NFT. This function must be overwritte in specific NFT class

Declaration
public abstract void ParseSpecific(IDictionary<string, string> meta)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.String> meta
| Improve this Doc View Source

ParseTags()

Function will parse tags to the list of the tags

Declaration
public virtual void ParseTags()
| Improve this Doc View Source

StartRefreshingTxData(Int32)

Start auto refreshing of the tx info data

Declaration
public async Task StartRefreshingTxData(int interval = 5000)
Parameters
Type Name Description
System.Int32 interval
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

StopRefreshingData()

Stop the auto refreshin of the tx info data

Declaration
public async Task StopRefreshingData()
Returns
Type Description
System.Threading.Tasks.Task

Events

| Improve this Doc View Source

TxDataRefreshed

This event is fired when the transaction info is refreshed

Declaration
public event EventHandler<GetTransactionInfoResponse> TxDataRefreshed
Event Type
Type Description
System.EventHandler<GetTransactionInfoResponse>

Implements

INFT