C# 클래스 JustPressPlay.Models.Repositories.UserRepository

상속: Repository
파일 보기 프로젝트 열기: RIT-MAGIC/JustPressPlay 1 사용 예제들

공개 메소드들

메소드 설명
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 ( UnitOfWork unitOfWork ) : System

Creates a new user repository

메소드 상세

AcceptFriendRequest() 공개 메소드

Accepts a friend request between the specified id (the source) and the logged in user (the destination)
public AcceptFriendRequest ( int id ) : System.Boolean
id int The id of the source of the friend request
리턴 System.Boolean

AddFriend() 공개 메소드

Attempts to add a friend (sends a request)
public AddFriend ( int id ) : System.Boolean
id int The id of the user to add as a friend
리턴 System.Boolean

AddOrUpdateFacebookSettings() 공개 메소드

Adds (or, if it exists, updates) a user's Facebook settings
public AddOrUpdateFacebookSettings ( user user, bool notificationsEnabled, bool automaticSharingEnabled ) : void
user user
notificationsEnabled bool
automaticSharingEnabled bool
리턴 void

DeclineFriendRequest() 공개 메소드

Declines a friend request between the specified id (the source) and the logged in user (the destination)
public DeclineFriendRequest ( int id ) : System.Boolean
id int The id of the source of the friend request
리턴 System.Boolean

GetAllActiveUsers() 공개 메소드

public GetAllActiveUsers ( ) : List
리턴 List

GetAllCaretakers() 공개 메소드

public GetAllCaretakers ( ) : List
리턴 List

GetAllUsers() 공개 메소드

public GetAllUsers ( ) : List
리턴 List

GetCommunicationSettingsById() 공개 메소드

public GetCommunicationSettingsById ( int id ) : int
id int
리턴 int

GetPrivacySettingsById() 공개 메소드

public GetPrivacySettingsById ( int id ) : int
id int
리턴 int

GetUser() 공개 메소드

public GetUser ( int id ) : user
id int
리턴 user

GetUser() 공개 메소드

public GetUser ( string username ) : user
username string
리턴 user

GetUserByEmail() 공개 메소드

public GetUserByEmail ( string email ) : user
email string
리턴 user

GetUserFacebookSettingsById() 공개 메소드

Attempts to get a user's Facebook settings
public GetUserFacebookSettingsById ( int userId ) : facebook_connection
userId int The user's ID
리턴 facebook_connection

IgnoreFriendRequest() 공개 메소드

Ignores a friend request between the specified id (the source) and the logged in user (the destination)
public IgnoreFriendRequest ( int id ) : System.Boolean
id int The id of the source of the friend request
리턴 System.Boolean

RemoveFriend() 공개 메소드

Removes a friendship between the specified id and the logged in user
public RemoveFriend ( int id ) : System.Boolean
id int The id of the friend to remove
리턴 System.Boolean

Save() 공개 메소드

public Save ( ) : void
리턴 void

UpdateFacebookDataForExistingConnection() 공개 메소드

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.
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
리턴 void

UpdateLastLogin() 공개 메소드

public UpdateLastLogin ( string username ) : void
username string
리턴 void

UpdateUserSettings() 공개 메소드

public UpdateUserSettings ( int userId, int communicationSettings, int privacySettings ) : void
userId int
communicationSettings int
privacySettings int
리턴 void

UserEditProfile() 공개 메소드

public UserEditProfile ( int userID, String image, String displayName, String sixWordBio, String fullBio ) : bool
userID int
image String
displayName String
sixWordBio String
fullBio String
리턴 bool

UserRepository() 공개 메소드

Creates a new user repository
public UserRepository ( UnitOfWork unitOfWork ) : System
unitOfWork UnitOfWork The unit of work that created this repository
리턴 System