C# Class WaveBox.Core.Model.User

Inheritance: IGroupingItem
Exibir arquivo Open project: einsteinx2/WaveBox Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Authenticate ( string password ) : bool
CompareUsersByName ( User x, User y ) : int
ComputePasswordHash ( string password, string salt, int iterations = HashIterations ) : string
CreateSession ( string password, string clientName ) : bool
Delete ( ) : bool
DeleteSession ( string sessionId ) : bool
GeneratePasswordSalt ( ) : string
HasPermission ( Role role ) : bool
ListOfSessions ( ) : IList
ToString ( ) : string
UpdateLastfmSession ( string sessionKey ) : bool
UpdatePassword ( string password ) : bool
UpdateRole ( Role role ) : bool
UpdateSession ( string sessionId ) : bool
UpdateUsername ( string username ) : bool

Method Details

Authenticate() public method

public Authenticate ( string password ) : bool
password string
return bool

CompareUsersByName() public static method

public static CompareUsersByName ( User x, User y ) : int
x User
y User
return int

ComputePasswordHash() public static method

public static ComputePasswordHash ( string password, string salt, int iterations = HashIterations ) : string
password string
salt string
iterations int
return string

CreateSession() public method

public CreateSession ( string password, string clientName ) : bool
password string
clientName string
return bool

Delete() public method

public Delete ( ) : bool
return bool

DeleteSession() public method

public DeleteSession ( string sessionId ) : bool
sessionId string
return bool

GeneratePasswordSalt() public static method

public static GeneratePasswordSalt ( ) : string
return string

HasPermission() public method

public HasPermission ( Role role ) : bool
role Role
return bool

ListOfSessions() public method

public ListOfSessions ( ) : IList
return IList

ToString() public method

public ToString ( ) : string
return string

UpdateLastfmSession() public method

public UpdateLastfmSession ( string sessionKey ) : bool
sessionKey string
return bool

UpdatePassword() public method

public UpdatePassword ( string password ) : bool
password string
return bool

UpdateRole() public method

public UpdateRole ( Role role ) : bool
role Role
return bool

UpdateSession() public method

public UpdateSession ( string sessionId ) : bool
sessionId string
return bool

UpdateUsername() public method

public UpdateUsername ( string username ) : bool
username string
return bool