C# Class IsThereAnyNews.DataAccess.Implementation.UserRepository

Inheritance: IUserRepository
Show file Open project: jstadnicki/isthereanynews Class Usage Examples

Public Methods

Method Description
ChangeDisplayName ( long currentUserId, string displayname ) : void
ChangeEmail ( long currentUserId, string email ) : void
CreateNewUser ( string name, string email ) : long
GetAllUsers ( ) : List
GetUserLastReadTime ( long userId ) : System.DateTime
GetUserPrivateDetails ( long currentUserId ) : UserPrivateProfileDto
LoadAllUsersPublicProfileWithChannelsCount ( ) : List
LoadUserPublicProfile ( long id ) : UserPublicProfileDto
UpdateDisplayNames ( List emptyDisplay ) : void
UpdateUserLastReadTime ( long userId, System.DateTime now ) : void
UserRepository ( ItanDatabaseContext database ) : System

Method Details

ChangeDisplayName() public method

public ChangeDisplayName ( long currentUserId, string displayname ) : void
currentUserId long
displayname string
return void

ChangeEmail() public method

public ChangeEmail ( long currentUserId, string email ) : void
currentUserId long
email string
return void

CreateNewUser() public method

public CreateNewUser ( string name, string email ) : long
name string
email string
return long

GetAllUsers() public method

public GetAllUsers ( ) : List
return List

GetUserLastReadTime() public method

public GetUserLastReadTime ( long userId ) : System.DateTime
userId long
return System.DateTime

GetUserPrivateDetails() public method

public GetUserPrivateDetails ( long currentUserId ) : UserPrivateProfileDto
currentUserId long
return IsThereAnyNews.ProjectionModels.UserPrivateProfileDto

LoadAllUsersPublicProfileWithChannelsCount() public method

public LoadAllUsersPublicProfileWithChannelsCount ( ) : List
return List

LoadUserPublicProfile() public method

public LoadUserPublicProfile ( long id ) : UserPublicProfileDto
id long
return IsThereAnyNews.ProjectionModels.UserPublicProfileDto

UpdateDisplayNames() public method

public UpdateDisplayNames ( List emptyDisplay ) : void
emptyDisplay List
return void

UpdateUserLastReadTime() public method

public UpdateUserLastReadTime ( long userId, System.DateTime now ) : void
userId long
now System.DateTime
return void

UserRepository() public method

public UserRepository ( ItanDatabaseContext database ) : System
database IsThereAnyNews.EntityFramework.ItanDatabaseContext
return System