Skip to main content

Display

Namespace: IotaSdk

public class Display : IDisplay, System.IDisposable

Inheritance ObjectDisplay
Implements IDisplay, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors

Display(UInt64)

public Display(ulong pointer)

Parameters

pointer UInt64

Methods

Destroy()

public void Destroy()

Dispose()

public void Dispose()

Fields()

The display template as key/value pairs (e.g. name, link, image_url, description).

public Dictionary<string, string> Fields()

Returns

Dictionary<String, String>

Id()

The object's ID.

public ObjectId Id()

Returns

ObjectId

Version()

Version, bumped manually by the publisher on each update.

public ushort Version()

Returns

UInt16

TryFromBcs(Byte[])

Decode from BCS bytes, without validating the on-chain type tag.

public static Display TryFromBcs(Byte[] bytes)

Parameters

bytes Byte[]

Returns

Display

Exceptions

SdkFfiException

TryFromObjectWithType(Object, TypeTag)

Decode from an on-chain object, validating its Move type tag, including that its type parameter equals type_param.

public static Display TryFromObjectWithType(Object object, TypeTag typeParam)

Parameters

object Object

typeParam TypeTag

Returns

Display

Exceptions

SdkFfiException