Table of Contents

Class Achievement

Namespace
InSite.Domain.Records
Assembly
Shift.Sdk.dll
public class Achievement : AggregateState
Inheritance
Achievement
Inherited Members
Extension Methods

Constructors

Achievement()

public Achievement()

Properties

BadgeImageUrl

public string BadgeImageUrl { get; set; }

Property Value

string

CertificateLayout

public string CertificateLayout { get; set; }

Property Value

string

Description

public string Description { get; set; }

Property Value

string

Enabled

public bool Enabled { get; set; }

Property Value

bool

Expiration

public Expiration Expiration { get; set; }

Property Value

Expiration

HasBadgeImage

public bool? HasBadgeImage { get; set; }

Property Value

bool?

Label

public string Label { get; set; }

Property Value

string

Prerequisites

This property represents a table of Achievement options. Prerequisites are understood to be satisfied only if ALL prerequisite conditions are satisfied.

public List<AchievementPrerequisite> Prerequisites { get; set; }

Property Value

List<AchievementPrerequisite>

Examples

Suppose we have an Achievement X with two prerequisites: Y = Mathematics 271 OR Mathematics 273 Z = Philosophy 279 OR Philosophy 377 The prerequisites for X are satisfied only if the conditions for both Y AND Z are satisfied.

ReportingDisabled

public bool ReportingDisabled { get; set; }

Property Value

bool

Tenant

public Guid Tenant { get; set; }

Property Value

Guid

Title

public string Title { get; set; }

Property Value

string

Type

public string Type { get; set; }

Property Value

string

Methods

When(AchievementBadgeImageChanged)

public void When(AchievementBadgeImageChanged c)

Parameters

c AchievementBadgeImageChanged

When(AchievementBadgeImageDisabled)

public void When(AchievementBadgeImageDisabled _)

Parameters

_ AchievementBadgeImageDisabled

When(AchievementBadgeImageEnabled)

public void When(AchievementBadgeImageEnabled _)

Parameters

_ AchievementBadgeImageEnabled

When(AchievementCreated)

public void When(AchievementCreated c)

Parameters

c AchievementCreated

When(AchievementDeleted)

public void When(AchievementDeleted _)

Parameters

_ AchievementDeleted

When(AchievementDescribed)

public void When(AchievementDescribed c)

Parameters

c AchievementDescribed

When(AchievementExpiryChanged)

public void When(AchievementExpiryChanged c)

Parameters

c AchievementExpiryChanged

When(AchievementLocked)

public void When(AchievementLocked _)

Parameters

_ AchievementLocked

When(AchievementNotChanged)

public void When(AchievementNotChanged _)

Parameters

_ AchievementNotChanged

When(AchievementPrerequisiteAdded)

public void When(AchievementPrerequisiteAdded c)

Parameters

c AchievementPrerequisiteAdded

When(AchievementPrerequisiteDeleted)

public void When(AchievementPrerequisiteDeleted c)

Parameters

c AchievementPrerequisiteDeleted

When(AchievementReportingDisabled)

public void When(AchievementReportingDisabled _)

Parameters

_ AchievementReportingDisabled

When(AchievementReportingEnabled)

public void When(AchievementReportingEnabled _)

Parameters

_ AchievementReportingEnabled

When(AchievementTenantChanged)

public void When(AchievementTenantChanged c)

Parameters

c AchievementTenantChanged

When(AchievementTypeChanged)

public void When(AchievementTypeChanged c)

Parameters

c AchievementTypeChanged

When(AchievementUnlocked)

public void When(AchievementUnlocked _)

Parameters

_ AchievementUnlocked

When(CertificateLayoutChanged)

public void When(CertificateLayoutChanged c)

Parameters

c CertificateLayoutChanged

When(SerializedChange)

public void When(SerializedChange _)

Parameters

_ SerializedChange