Documentation

Mistake on this page? Email us

Hierarchy

  • ResourceValue

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • __namedParameters: object
      • payload: string
      • resource: Resource
      • tlvParser: TlvParser

    Returns ResourceValue

Properties

payload

payload: string

The raw base64 encoded payload

resource

resource: Resource

The resource this resource value was read from

value

value: string | number | LatLong | IterableIterator<TlvValue>

The value of the resource in human readable form Can be a string, number, pair of lat long values or a iterator of tlv values

Methods

toJson

  • toJson(): any
  • Will return the json representation of the resource value, if it is a tlv value

    Returns any

toString

  • toString(): string
  • Return the value of the resource as a string

    Returns string