Generated by DocFX

Class IoTDeviceNFT

IoT Device NFT - can load the data from the API and resend them as NFT IoTMessages

Inheritance
System.Object
CommonNFT
IoTDeviceNFT
Implements
INFT
Inherited Members
CommonNFT.TypeText
CommonNFT.Type
CommonNFT.Name
CommonNFT.Author
CommonNFT.Description
CommonNFT.Text
CommonNFT.Link
CommonNFT.IconLink
CommonNFT.ImageLink
CommonNFT.ImageData
CommonNFT.Base64Data
CommonNFT.Preview
CommonNFT.PreviewData
CommonNFT.DataItems
CommonNFT.Tags
CommonNFT.TagsList
CommonNFT.Utxo
CommonNFT.UtxoIndex
CommonNFT.ShortHash
CommonNFT.NFTOriginTxId
CommonNFT.SourceTxId
CommonNFT.TokenId
CommonNFT.Price
CommonNFT.PriceActive
CommonNFT.DogePrice
CommonNFT.DogePriceActive
CommonNFT.DogeAddress
CommonNFT.SellJustCopy
CommonNFT.IsLoaded
CommonNFT.IsInThePayments
CommonNFT.DogeftInfo
CommonNFT.SoldInfo
CommonNFT.Time
CommonNFT.History
CommonNFT.TxDetails
CommonNFT.TxDataRefreshed
CommonNFT.IsSpendable()
CommonNFT.LoadHistory()
CommonNFT.FillCommon(INFT)
CommonNFT.ClearSoldInfo()
CommonNFT.ClearPrices()
CommonNFT.ParseTags()
CommonNFT.LoadLastData(IDictionary<String, String>)
CommonNFT.ParsePrice(IDictionary<String, String>)
CommonNFT.ParseSoldInfo(IDictionary<String, String>)
CommonNFT.ParseCommon(IDictionary<String, String>)
CommonNFT.ParseDogeftInfo(IDictionary<String, String>)
CommonNFT.GetCommonMetadata()
CommonNFT.DownloadPreviewData()
CommonNFT.DownloadImageData()
CommonNFT.DecryptImageData(BitcoinSecret, String, String, String)
CommonNFT.DecryptProperty(String, BitcoinSecret, String, String, String)
CommonNFT.StopRefreshingData()
CommonNFT.StartRefreshingTxData(Int32)
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.DevicesNFTs
Assembly: VEDriversLite.dll
Syntax
public class IoTDeviceNFT : CommonNFT, INFT

Constructors

| Improve this Doc View Source

IoTDeviceNFT(String)

Constructor of the empty NFT IoTDevice

Declaration
public IoTDeviceNFT(string utxo)
Parameters
Type Name Description
System.String utxo

Properties

| Improve this Doc View Source

Active

NFT IoTDevice is active and communicate with API

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

Address

Address of the owner of the NFT

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

AllowConsoleOutputWhenNewMessage

Allow output to the console when new message will arrive

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

AutoActivation

Activate automatically the NFT when it is loaded on some address

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

DecryptedSetting

The settings is already decrypted if this is true

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

DeviceNFTHash

Related NFT Device hash

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

EncryptedLocationCoordinatesString

Encrypted form of location coordinates

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

EncryptedLocationString

Encrypted form of the location

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

EncryptedSettingString

Encrypted form of settings as serialized string

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

EncryptMessages

Set if you want to encrypt all sent messages

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

EncryptSetting

Encrypted settings. It will encrypt the settings with use of the BitcoinSecret

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

IDDSettings

Loaded IoT Data Driver Settings with parameters for the connection to the API

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

IoTDataDriver

IoT Data Driver

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

IoTDataDriverTypeText

Type of the driver as text

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

IoTDDType

Type of the driver

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

Location

Location name

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

LocationCoordinates

Location coordinates string

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

LocationCoordinatesLat

Location coordinate Latitude

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

LocationCoordinatesLen

Location coordinate Longitude

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

MessageNFTs

List of all processed messages or messages which should be processed

Declaration
[JsonIgnore]
public Dictionary<string, INFT> MessageNFTs { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, INFT>
| Improve this Doc View Source

ReceivingMessageAddress

Address where should NFT IoTDevice send the NFT IoTMessages when some new is available

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

RunJustOwn

Run just NFT which was minted on this address or resent to itself on same address

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

SourceDeviceNFT

Related Device NFT

Declaration
[JsonIgnore]
public INFT SourceDeviceNFT { get; set; }
Property Value
Type Description
INFT

Methods

| Improve this Doc View Source

DecryptSetting(BitcoinSecret)

Decrypt the IoT connection settings. You must provide the BitcoinSecret

Declaration
public async Task DecryptSetting(BitcoinSecret secret = null)
Parameters
Type Name Description
NBitcoin.BitcoinSecret secret
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

DeInitCommunication()

Deinitalization of the communication with the IoT API

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

Fill(INFT)

Fill the data of the NFT

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

GetLastData()

Get last data for this NFT

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

GetMetadata(String, String, String)

Get NFT metadata.

Declaration
public override async Task<IDictionary<string, string>> GetMetadata(string address = "", string key = "", string receiver = "")
Parameters
Type Name Description
System.String address
System.String key
System.String receiver
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String, System.String>>
Overrides
CommonNFT.GetMetadata(String, String, String)
| Improve this Doc View Source

InitCommunication(BitcoinSecret)

Start the communication. If the settings is encrypted you must provide the bitcoin secret

Declaration
public async Task InitCommunication(BitcoinSecret secret = null)
Parameters
Type Name Description
NBitcoin.BitcoinSecret secret
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

LoadDeviceNFT()

Load Device NFT for this IoT Device

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

MarkMessageAsProcessed(String)

Mark the message as processed. It will add it to the dictionary with new flag Processed instead of ToProcess

Declaration
public bool MarkMessageAsProcessed(string messageName)
Parameters
Type Name Description
System.String messageName
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ParseOriginData(IDictionary<String, String>, GetTransactionInfoResponse)

Parse origin data of the NFT

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
CommonNFT.ParseOriginData(IDictionary<String, String>, GetTransactionInfoResponse)
| Improve this Doc View Source

ParseSpecific(IDictionary<String, String>)

Parse specific data for the NFT

Declaration
public override void ParseSpecific(IDictionary<string, string> metadata)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.String> metadata
Overrides
CommonNFT.ParseSpecific(IDictionary<String, String>)

Events

| Improve this Doc View Source

NewMessage

New message arrived event

Declaration
public event EventHandler<(string, INFT)> NewMessage
Event Type
Type Description
System.EventHandler<System.ValueTuple<System.String, INFT>>

Implements

INFT