C# Class ActivEarth.DAO.UserDAO

ファイルを表示 Open project: mlcamilli/ActivEarth

Public Methods

Method Description
AddBadgePoints ( int userId, int points ) : bool
AddChallengePoints ( int userId, int points ) : bool
AddContestPoints ( int userId, int points ) : bool
ConfirmPassword ( string password, int userId ) : bool
CreateNewUser ( User user, string password ) : int
GetAllUsers ( ) : ObservableCollection
GetUserFromUserId ( int userId ) : User
GetUserFromUserName ( string userName ) : UserDataProvider
GetUserFromUserNameAndPassword ( string userName, string password ) : User
GetUserIdFromUserName ( string username ) : int
UpdatePassword ( string password, int userId, string &errorMessage ) : bool
UpdateUserProfile ( User user ) : bool

Method Details

AddBadgePoints() public static method

public static AddBadgePoints ( int userId, int points ) : bool
userId int
points int
return bool

AddChallengePoints() public static method

public static AddChallengePoints ( int userId, int points ) : bool
userId int
points int
return bool

AddContestPoints() public static method

public static AddContestPoints ( int userId, int points ) : bool
userId int
points int
return bool

ConfirmPassword() public static method

public static ConfirmPassword ( string password, int userId ) : bool
password string
userId int
return bool

CreateNewUser() public static method

public static CreateNewUser ( User user, string password ) : int
user ActivEarth.Objects.Profile.User
password string
return int

GetAllUsers() public static method

public static GetAllUsers ( ) : ObservableCollection
return ObservableCollection

GetUserFromUserId() public static method

public static GetUserFromUserId ( int userId ) : User
userId int
return ActivEarth.Objects.Profile.User

GetUserFromUserName() public static method

public static GetUserFromUserName ( string userName ) : UserDataProvider
userName string
return ActivEarth.Server.Service.UserDataProvider

GetUserFromUserNameAndPassword() public static method

public static GetUserFromUserNameAndPassword ( string userName, string password ) : User
userName string
password string
return ActivEarth.Objects.Profile.User

GetUserIdFromUserName() public static method

public static GetUserIdFromUserName ( string username ) : int
username string
return int

UpdatePassword() public static method

public static UpdatePassword ( string password, int userId, string &errorMessage ) : bool
password string
userId int
errorMessage string
return bool

UpdateUserProfile() public static method

public static UpdateUserProfile ( User user ) : bool
user ActivEarth.Objects.Profile.User
return bool