Method | Description | |
---|---|---|
AchievementRepository ( |
Creates a new achievement repository
|
|
AchievementTitleExists ( String title, int id = null ) : bool | ||
AdminAddAchievement ( |
||
AdminEditAchievement ( int id, |
||
AssignAchievement ( int userID, int achievementID, int assignedByID = null, bool autoSave = true, System.DateTime dateAssigned = null, bool cardGiven = false, bool isGlobal = false ) : JPPConstants.AssignAchievementResult |
Assigns an achievement TODO: Put in lots more error checking!
|
|
AssignGlobalAchievement ( int achievementID, System.DateTime startRange, System.DateTime endRange, int assignedByID ) : void |
Assigns the specified achievement to all users in the system.
|
|
AwardCard ( |
||
CheckFacebookLinkSystemAchievement ( int userID ) : void |
Checks for Facebook Link System Achievement (User connects their JPP account with their Facebook account)
|
|
CheckFriendSystemAchievements ( int userID ) : void |
Checks for Friends_x1, Friends_x10, and Friends_x25 System Achievements (User acquires 1 Friend, acquires 10 friends, acquires 25 friends)
|
|
CheckOneKAndTenKSystemAchievements ( int userID ) : void |
Checks for One-K and Ten-K System Achievements (1000 and 10000 achievements systemwide)
|
|
CheckProfilePictureSystemAchievement ( int userID ) : void |
Check Profile Picture System Achievement (User adds a profile picture for the first time)
|
|
CheckPublicProfileSystemAchievement ( int userID ) : void |
Checks for Public Profile System Achievement (User changes privacy setting to "Public")
|
|
CheckRingSystemAchievements ( int userID, List |
Checks for Ring_x4, Ring_x25, and Ring_x100 System Achievements (User gets 4 points in each quadrant, 25 points in each quadrant, 100 points in each quadrant)
|
|
CheckSixWordBioSystemAchievements ( int userID ) : void |
Checks for Six Word Bio System Achievement (User add a Six Word Bio for the first time)
|
|
DiscardAchievementDraft ( int id ) : String | ||
DoesUserHaveAchievement ( int userId, int achievementId ) : bool | ||
GetAchievementState ( int id ) : int | ||
GetAchievementType ( int id ) : int | ||
GetAchievementsForFeed ( ) : List |
||
GetAssignableAchievements ( int userID, bool isFullAdmin ) : List |
||
GetParentAchievements ( ) : List |
||
GetSystemAchievementID ( int systemAchievementType ) : int | ||
GetTemplateById ( int id ) : |
||
GetUserAchievementInstance ( int achievementID ) : |
||
GetUserAchievementInstance ( int userId, int achievementId ) : |
||
HandleContentSubmission ( int contentID, JPPConstants handleContent, string reason = null ) : void | ||
InstanceExists ( int instanceID ) : |
||
RevokeAchievement ( int instanceID, string reason, bool autoSave = true, int adminID = null ) : void | ||
RevokeCard ( |
||
Save ( ) : void | ||
SystemAchievementExists ( int systemAchievementType ) : System.Boolean | ||
UserAddAchievementStoryImage ( int instanceID, String imagePath ) : System.Boolean |
Adds or Edits an Image for a User's story
|
|
UserAddAchievementStoryText ( int instanceID, String text ) : System.Boolean | ||
UserSubmittedContentForImage ( int achievementID, int userID, string imageLocation, string text ) : System.Boolean | ||
UserSubmittedContentForText ( int achievementID, int userID, String text ) : System.Boolean | ||
UserSubmittedContentForURL ( int achievementID, int userID, String text, String url ) : System.Boolean |
Method | Description | |
---|---|---|
AddAchievementToDatabase ( |
||
AddCaretakersToDatabase ( List |
||
AddRequirementsToDatabase ( List |
||
AssignContentSubmissionAchievement ( int approvedByID, |
Assigns an achievement with user content associated with it. TODO: CHECK THE LOGIC TO MAKE SURE IT ALL WORKS THE WAY IT SHOULD
|
|
CanAwardRepeatableAchievement ( |
||
CheckForThresholdUnlock ( int achievementID, int userID ) : bool |
Check to see if an scan achievement instance triggers a threshold achievement
|
|
DenyContentSubmission ( |
public AchievementRepository ( |
||
unitOfWork | The unit of work that created this repository | |
return | System |
public AchievementTitleExists ( String title, int id = null ) : bool | ||
title | String | |
id | int | |
return | bool |
public AdminAddAchievement ( |
||
model | ||
return | void |
public AdminEditAchievement ( int id, |
||
id | int | |
model | ||
return | void |
public AssignAchievement ( int userID, int achievementID, int assignedByID = null, bool autoSave = true, System.DateTime dateAssigned = null, bool cardGiven = false, bool isGlobal = false ) : JPPConstants.AssignAchievementResult | ||
userID | int | The id of the user getting the achievement |
achievementID | int | The id of the achievement template |
assignedByID | int | The id of the user assigning the achievement |
autoSave | bool | |
dateAssigned | System.DateTime | |
cardGiven | bool | Was the card given to the user? |
isGlobal | bool | |
return | JPPConstants.AssignAchievementResult |
public AssignGlobalAchievement ( int achievementID, System.DateTime startRange, System.DateTime endRange, int assignedByID ) : void | ||
achievementID | int | The ID of the achievement to assign |
startRange | System.DateTime | |
endRange | System.DateTime | |
assignedByID | int | The ID of the User who assigned the achievement |
return | void |
public AwardCard ( |
||
instance | ||
return | void |
public CheckFacebookLinkSystemAchievement ( int userID ) : void | ||
userID | int | |
return | void |
public CheckFriendSystemAchievements ( int userID ) : void | ||
userID | int | |
return | void |
public CheckOneKAndTenKSystemAchievements ( int userID ) : void | ||
userID | int | |
return | void |
public CheckProfilePictureSystemAchievement ( int userID ) : void | ||
userID | int | |
return | void |
public CheckPublicProfileSystemAchievement ( int userID ) : void | ||
userID | int | |
return | void |
public CheckRingSystemAchievements ( int userID, List |
||
userID | int | |
userAchievements | List |
|
return | void |
public CheckSixWordBioSystemAchievements ( int userID ) : void | ||
userID | int | |
return | void |
public DiscardAchievementDraft ( int id ) : String | ||
id | int | |
return | String |
public DoesUserHaveAchievement ( int userId, int achievementId ) : bool | ||
userId | int | |
achievementId | int | |
return | bool |
public GetAssignableAchievements ( int userID, bool isFullAdmin ) : List |
||
userID | int | |
isFullAdmin | bool | |
return | List |
public GetSystemAchievementID ( int systemAchievementType ) : int | ||
systemAchievementType | int | |
return | int |
public GetTemplateById ( int id ) : |
||
id | int | |
return |
public GetUserAchievementInstance ( int achievementID ) : |
||
achievementID | int | |
return |
public GetUserAchievementInstance ( int userId, int achievementId ) : |
||
userId | int | |
achievementId | int | |
return |
public HandleContentSubmission ( int contentID, JPPConstants handleContent, string reason = null ) : void | ||
contentID | int | |
handleContent | JPPConstants | |
reason | string | |
return | void |
public InstanceExists ( int instanceID ) : |
||
instanceID | int | |
return |
public RevokeAchievement ( int instanceID, string reason, bool autoSave = true, int adminID = null ) : void | ||
instanceID | int | |
reason | string | |
autoSave | bool | |
adminID | int | |
return | void |
public RevokeCard ( |
||
instance | ||
return | void |
public SystemAchievementExists ( int systemAchievementType ) : System.Boolean | ||
systemAchievementType | int | |
return | System.Boolean |
public UserAddAchievementStoryImage ( int instanceID, String imagePath ) : System.Boolean | ||
instanceID | int | Achievement Instance |
imagePath | String | Filepath of the new Image |
return | System.Boolean |
public UserAddAchievementStoryText ( int instanceID, String text ) : System.Boolean | ||
instanceID | int | |
text | String | |
return | System.Boolean |
public UserSubmittedContentForImage ( int achievementID, int userID, string imageLocation, string text ) : System.Boolean | ||
achievementID | int | |
userID | int | |
imageLocation | string | |
text | string | |
return | System.Boolean |
public UserSubmittedContentForText ( int achievementID, int userID, String text ) : System.Boolean | ||
achievementID | int | |
userID | int | |
text | String | |
return | System.Boolean |
public UserSubmittedContentForURL ( int achievementID, int userID, String text, String url ) : System.Boolean | ||
achievementID | int | |
userID | int | |
text | String | |
url | String | |
return | System.Boolean |