@acceleratxr/core_sdk / Achievement

Class: Achievement#

Describes a single achievement that a given user has already unlocked.

REQUIRES: Achievements Services

author Jean-Philippe Steinmetz info@acceleratxr.com

Hierarchy#

Index#

Constructors#

Properties#

Accessors#

Constructors#

constructor#

+ new Achievement(other?: any): Achievement

Overrides EntityBase.constructor

Defined in src/models/Achievement.ts:24

Parameters:#

Name

Type

other?

any

Returns: Achievement

Properties#

achievementUid#

achievementUid: string = “”

Defined in src/models/Achievement.ts:19

The unique identifier of the achievement that the user has unlocked.


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.


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/Achievement.ts:24

The unique identifier of the user that unlocked the achievement.


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/Achievement.ts:14

Returns: string