@acceleratxr/core_sdk / PersonaResource

Class: PersonaResource#

Describes a single resource associated with a specific user or persona.

author Jean-Philippe Steinmetz info@acceleratxr.com

Hierarchy#

Index#

Constructors#

Properties#

Accessors#

Constructors#

constructor#

+ new PersonaResource(other?: any): PersonaResource

Overrides EntityBase.constructor

Defined in src/models/PersonaResource.ts:38

Parameters:#

Name

Type

other?

any

Returns: PersonaResource

Properties#

data#

data: any = undefined

Defined in src/models/PersonaResource.ts:33

An arbitrary map of additional data about the instance of the resource for the persona.


dateCreated#

dateCreated: Date = new Date()

Inherited from EntityBase.dateCreated

Defined in src/EntityBase.ts:18

The date and time that the object was created.


dateModified#

dateModified: Date = new Date()

Inherited from EntityBase.dateModified

Defined in src/EntityBase.ts:23

The date and time that the object was last modified.


personaUid#

personaUid: string = “”

Defined in src/models/PersonaResource.ts:18

The unique identifier of the persona or user that this resource belongs to.


quantity#

quantity: number = -1

Defined in src/models/PersonaResource.ts:28

The number of resources in the inventory. A negative value indicates an unlimited quantity. A positive value indicates a finite quantity.


resourceUid#

resourceUid: string = “”

Defined in src/models/PersonaResource.ts:23

The UUID of the resource definition.


stats#

stats: Array<Statistic> = []

Defined in src/models/PersonaResource.ts:38

The list of unique stats for the resource. Stats are not applicable on stackable resources.


uid#

uid: string = uuid.v4()

Inherited from EntityBase.uid

Defined in src/EntityBase.ts:13

The universally unique identifier of the object.


version#

version: number = 0

Inherited from EntityBase.version

Defined in src/EntityBase.ts:28

The optimistic locking version of the object.

Accessors#

ClassName#

Staticget ClassName(): string

Defined in src/models/PersonaResource.ts:13

Returns: string