@acceleratxr/core_sdk / Persona
Class: Persona#
An Persona is a unique persona of a user within the system. Users can have multiple personas per account and the persona can have associated data such as inventory, progress, achievements, etc.
REQUIRES: Persona Services
author Jean-Philippe Steinmetz info@acceleratxr.com
Hierarchy#
-
↳ Persona
Index#
Constructors#
Properties#
Accessors#
Constructors#
constructor#
+ new Persona(other?: any): Persona
Overrides EntityBase.constructor
Defined in src/models/Persona.ts:41
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Persona
Properties#
attributes#
• attributes: any = null
Defined in src/models/Persona.ts:41
An arbitrary map of key-value pairs containing the characteristics of 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.
description#
• description: string = “”
Defined in src/models/Persona.ts:29
A textual description of the persona.
name#
• name: string = “”
Defined in src/models/Persona.ts:24
The unique name of the persona.
productUid#
• productUid: string | undefined = undefined
Defined in src/models/Persona.ts:36
The uid of the product that this persona is associated with.
REQUIRES: Persona Services.
uid#
• uid: string = uuid.v4()
Inherited from EntityBase.uid
Defined in src/EntityBase.ts:13
The universally unique identifier of the object.
userUid#
• userUid: string = “”
Defined in src/models/Persona.ts:19
The unique identifier of the user that the persona belongs to.
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/Persona.ts:14
Returns: string