This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IUserAchievements>()
and is defined in Telligent.Evolution.Platform.dll
Events
Events.AfterCreate
Handler
void UserAchievementAfterCreateEventHandler(UserAchievementAfterCreateEventArgs e);
Events.AfterDelete
Handler
void UserAchievementAfterDeleteEventHandler(UserAchievementAfterDeleteEventArgs e);
Events.BeforeCreate
Handler
void UserAchievementBeforeCreateEventHandler(UserAchievementBeforeCreateEventArgs e);
Events.BeforeDelete
Handler
void UserAchievementBeforeDeleteEventHandler(UserAchievementBeforeDeleteEventArgs e);
Methods
UserAchievement Create(int userId, Guid achievementId);
Award an achievement to a user
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
userId | int | User Id | Required | ||
achievementId | Guid | Achievement Id | Required |
Return Type
AdditionalInfo Delete(int userId, Guid achievementId);
Remove an achievement from a user
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
userId | int | User Id | Required | ||
achievementId | Guid | Achievement Id | Required |
Return Type
UserAchievement Get(int userId, Guid achievementId);
Award an achievement to a user
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
userId | int | User Id | Required | ||
achievementId | Guid | Achievement Id | Required |
Return Type
PagedList<UserAchievement> List(UserAchievementListOptions options = null);
List achievements earned by a user
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | UserAchievementListOptions | Options include:UserId,AchievementId, Enabled, CreatedBeforeDate, CreatedAfterDate, SortBy (Title, DateCreated), SortOrder (Ascending, Descending), PageSize, PageIndex | Optional |