Method | Description | |
---|---|---|
AcceptFriendRequest ( int id ) : System.Boolean |
Accepts a friend request between the specified id (the source) and the logged in user (the destination)
|
|
AddFriend ( int id ) : System.Boolean |
Attempts to add a friend (sends a request)
|
|
AddOrUpdateFacebookSettings ( user user, bool notificationsEnabled, bool automaticSharingEnabled ) : void |
Adds (or, if it exists, updates) a user's Facebook settings
|
|
DeclineFriendRequest ( int id ) : System.Boolean |
Declines a friend request between the specified id (the source) and the logged in user (the destination)
|
|
GetAllActiveUsers ( ) : List |
||
GetAllCaretakers ( ) : List |
||
GetAllUsers ( ) : List |
||
GetCommunicationSettingsById ( int id ) : int | ||
GetPrivacySettingsById ( int id ) : int | ||
GetUser ( int id ) : user | ||
GetUser ( string username ) : user | ||
GetUserByEmail ( string email ) : user | ||
GetUserFacebookSettingsById ( int userId ) : facebook_connection |
Attempts to get a user's Facebook settings
|
|
IgnoreFriendRequest ( int id ) : System.Boolean |
Ignores a friend request between the specified id (the source) and the logged in user (the destination)
|
|
RemoveFriend ( int id ) : System.Boolean |
Removes a friendship between the specified id and the logged in user
|
|
Save ( ) : void | ||
UpdateFacebookDataForExistingConnection ( user user, string fbUserId, string accessToken, System.DateTime accessTokenExpiration ) : void |
Updates the Facebook connection data (i.e. access token, etc) for a given user. It is assumed there is already a Facebook connection entry in the database.
|
|
UpdateLastLogin ( string username ) : void | ||
UpdateUserSettings ( int userId, int communicationSettings, int privacySettings ) : void | ||
UserEditProfile ( int userID, String image, String displayName, String sixWordBio, String fullBio ) : bool | ||
UserRepository ( |
Creates a new user repository
|
public AcceptFriendRequest ( int id ) : System.Boolean | ||
id | int | The id of the source of the friend request |
return | System.Boolean |
public AddFriend ( int id ) : System.Boolean | ||
id | int | The id of the user to add as a friend |
return | System.Boolean |
public AddOrUpdateFacebookSettings ( user user, bool notificationsEnabled, bool automaticSharingEnabled ) : void | ||
user | user | |
notificationsEnabled | bool | |
automaticSharingEnabled | bool | |
return | void |
public DeclineFriendRequest ( int id ) : System.Boolean | ||
id | int | The id of the source of the friend request |
return | System.Boolean |
public GetCommunicationSettingsById ( int id ) : int | ||
id | int | |
return | int |
public GetPrivacySettingsById ( int id ) : int | ||
id | int | |
return | int |
public GetUserByEmail ( string email ) : user | ||
string | ||
return | user |
public GetUserFacebookSettingsById ( int userId ) : facebook_connection | ||
userId | int | The user's ID |
return | facebook_connection |
public IgnoreFriendRequest ( int id ) : System.Boolean | ||
id | int | The id of the source of the friend request |
return | System.Boolean |
public RemoveFriend ( int id ) : System.Boolean | ||
id | int | The id of the friend to remove |
return | System.Boolean |
public UpdateFacebookDataForExistingConnection ( user user, string fbUserId, string accessToken, System.DateTime accessTokenExpiration ) : void | ||
user | user | The user to be updated |
fbUserId | string | The user's ID on Facebook |
accessToken | string | The access token provided by Facebook |
accessTokenExpiration | System.DateTime | The date/time the access token will expire |
return | void |
public UpdateLastLogin ( string username ) : void | ||
username | string | |
return | void |
public UpdateUserSettings ( int userId, int communicationSettings, int privacySettings ) : void | ||
userId | int | |
communicationSettings | int | |
privacySettings | int | |
return | void |
public UserEditProfile ( int userID, String image, String displayName, String sixWordBio, String fullBio ) : bool | ||
userID | int | |
image | String | |
displayName | String | |
sixWordBio | String | |
fullBio | String | |
return | bool |
public UserRepository ( |
||
unitOfWork | The unit of work that created this repository | |
return | System |