@acceleratxr/core_sdk / Quest
Class: Quest#
Tracks the progress of a specific quest for a given persona.
REQUIRES: Quest Services
author Jean-Philippe Steinmetz info@acceleratxr.com
Hierarchy#
-
↳ Quest
Index#
Constructors#
Properties#
Accessors#
Constructors#
constructor#
+ new Quest(other?: any): Quest
Overrides EntityBase.constructor
Defined in src/models/Quest.ts:62
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Quest
Properties#
completions#
• completions: number = 0
Defined in src/models/Quest.ts:42
The number of times that the quest has been completed by 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.
dateLastCompleted#
• dateLastCompleted: Date | undefined = undefined
Defined in src/models/Quest.ts:47
The date and time that the persona last completed the quest.
dateLastStarted#
• dateLastStarted: Date | undefined = undefined
Defined in src/models/Quest.ts:52
The date and time that the persona last started the quest.
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/Quest.ts:25
The unique identifier of the persona whose quest progress is being tracked.
productUid#
• productUid: string | undefined = undefined
Defined in src/models/Quest.ts:32
The uid of the product that this definition is associated with.
REQUIRES: Quest Services.
progress#
• progress: QuestProgress[] = []
Defined in src/models/Quest.ts:37
The persona’s current progress for each of the quest requirements.
questUid#
• questUid: string = “”
Defined in src/models/Quest.ts:20
The unique identifier of the quest being tracked.
uid#
• uid: string = uuid.v4()
Inherited from EntityBase.uid
Defined in src/EntityBase.ts:13
The universally unique identifier of the object.
unlockProgress#
• unlockProgress: QuestProgress[] = []
Defined in src/models/Quest.ts:62
The persona’s curent progress towards unlocking the quest.
unlocked#
• unlocked: boolean = false
Defined in src/models/Quest.ts:57
Indicates if the persona has unlocked and can begin the quest.
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/Quest.ts:15
Returns: string