@acceleratxr/core_sdk / AchievementDefinition

Class: AchievementDefinition#

Describes a single achievement that a user can unlock.

REQUIRES: Achievements Services

author Jean-Philippe Steinmetz info@acceleratxr.com

Hierarchy#

Index#

Constructors#

Properties#

Accessors#

Constructors#

constructor#

+ new AchievementDefinition(other?: any): AchievementDefinition

Overrides EntityBase.constructor

Defined in src/models/AchievementDefinition.ts:36

Parameters:#

Name

Type

other?

any

Returns: AchievementDefinition

Properties#

badge#

badge: string = “”

Defined in src/models/AchievementDefinition.ts:29

The icon to display when representing the achievement.


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

A textual description of the achievement.


name#

name: string = “”

Defined in src/models/AchievementDefinition.ts:19

The unique name of the achievement.


productUid#

productUid: string | undefined = undefined

Defined in src/models/AchievementDefinition.ts:36

The uid of the product that this achievement is associated with.

REQUIRES: Achievements Services.


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

Returns: string