Class ActiveTab
Active tab is able to load the Address and its NFTs
Inheritance
Inherited Members
Namespace: VEDriversLite.Bookmarks
Assembly: VEDriversLite.dll
Syntax
public class ActiveTab
Constructors
| Improve this Doc View SourceActiveTab()
Basic constructor
Declaration
public ActiveTab()
ActiveTab(String)
Basic constructor witch will load address and shortaddress
Declaration
public ActiveTab(string address)
Parameters
Type | Name | Description |
---|---|---|
System.String | address |
Fields
| Improve this Doc View SourceReceivedPayments
Loaded list of the received payments NFTs of the address
Declaration
[JsonIgnore]
public ConcurrentDictionary<string, INFT> ReceivedPayments
Field Value
Type | Description |
---|---|
System.Collections.Concurrent.ConcurrentDictionary<System.String, INFT> |
Properties
| Improve this Doc View SourceAddress
Address loaded in this ActiveTab
Declaration
public string Address { get; set; }
Property Value
Type | Description |
---|---|
System.String |
BookmarkFromAccount
Loaded Bookmark data
Declaration
[JsonIgnore]
public Bookmark BookmarkFromAccount { get; set; }
Property Value
Type | Description |
---|---|
Bookmark |
CanLoadMore
Tab loads just 40 NFTs. if it can load more, this is true
Declaration
public bool CanLoadMore { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsInBookmark
Flag if the Address is in the bookmark - then it has Bookmark dto loaded
Declaration
public bool IsInBookmark { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsRefreshingRunning
Indicate if the autorefresh is running
Declaration
[JsonIgnore]
public bool IsRefreshingRunning { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxLoadedNFTItems
Limit of the maximum loaded items in the Active Tab
Declaration
public int MaxLoadedNFTItems { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NFTs
List of the loaded NFTs of the Address
Declaration
[JsonIgnore]
public List<INFT> NFTs { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<INFT> |
Profile
Profile NFT of the Address
Declaration
[JsonIgnore]
public ProfileNFT Profile { get; set; }
Property Value
Type | Description |
---|---|
ProfileNFT |
Selected
Info if the Tab is selected - this is set by Start or Stop functions internally
Declaration
[JsonIgnore]
public bool Selected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShortAddress
Shorten version of the address - just help for UI
Declaration
public string ShortAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UtxosList
List of the loaded Utxos of the Address
Declaration
[JsonIgnore]
public ICollection<Utxos> UtxosList { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<Utxos> |
Methods
| Improve this Doc View SourceClearBookmark()
Clear the Bookmark data in ActiveTab
Declaration
public void ClearBookmark()
LoadBookmark(Bookmark)
Load Bookmark data into ActiveTab class when some bookmark is found in another storage (for example NeblioAccount class)
Declaration
public void LoadBookmark(Bookmark bkm)
Parameters
Type | Name | Description |
---|---|---|
Bookmark | bkm |
RefreshAddressReceivedPayments()
This function will search NFT Payments in the NFTs list and load them into ReceivedPayments list. This list is cleared at the start of this function
Declaration
public async Task RefreshAddressReceivedPayments()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Reload(Boolean)
Reload Address Utxos and refresh the NFT list
Declaration
public async Task Reload(bool withoutMessages = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | withoutMessages |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
StartRefreshing(Double, Boolean, Boolean)
Start Automated refreshing
Declaration
public async Task StartRefreshing(double interval = 5000, bool withoutMessages = true, bool withCahePreload = true)
Parameters
Type | Name | Description |
---|---|---|
System.Double | interval | basic refresh interval |
System.Boolean | withoutMessages | dont load the NFT Messages |
System.Boolean | withCahePreload | Activate preload |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
StopRefreshing()
Stop automated refreshing
Declaration
public void StopRefreshing()
TxCashPreload()
This is same function as in NeblioAcocuntBase - TODO merge them to one common function This will make loading of the tab much faster
Declaration
public async Task TxCashPreload()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Events
| Improve this Doc View SourceFirsLoadingStatus
This event is called during first loading of the account to keep updated the user
Declaration
public event EventHandler<string> FirsLoadingStatus
Event Type
Type | Description |
---|---|
System.EventHandler<System.String> |
NFTAddedToPayments
This event is fired whenever some NFT is in received payment too and it should be blocked for any further action. It provides Utxo and UtxoIndex as touple.
Declaration
public event EventHandler<(string, int)> NFTAddedToPayments
Event Type
Type | Description |
---|---|
System.EventHandler<System.ValueTuple<System.String, System.Int32>> |
NFTsChanged
This event is called whenever the list of NFTs is changed
Declaration
public event EventHandler<string> NFTsChanged
Event Type
Type | Description |
---|---|
System.EventHandler<System.String> |
ProfileUpdated
This event is called whenever profile nft is updated or found
Declaration
public event EventHandler<INFT> ProfileUpdated
Event Type
Type | Description |
---|---|
System.EventHandler<INFT> |