C# Class WaveBox.Core.Model.User

Inheritance: IGroupingItem
Afficher le fichier Open project: einsteinx2/WaveBox Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

public Authenticate ( string password ) : bool
password string
Résultat bool

CompareUsersByName() public static méthode

public static CompareUsersByName ( User x, User y ) : int
x User
y User
Résultat int

ComputePasswordHash() public static méthode

public static ComputePasswordHash ( string password, string salt, int iterations = HashIterations ) : string
password string
salt string
iterations int
Résultat string

CreateSession() public méthode

public CreateSession ( string password, string clientName ) : bool
password string
clientName string
Résultat bool

Delete() public méthode

public Delete ( ) : bool
Résultat bool

DeleteSession() public méthode

public DeleteSession ( string sessionId ) : bool
sessionId string
Résultat bool

GeneratePasswordSalt() public static méthode

public static GeneratePasswordSalt ( ) : string
Résultat string

HasPermission() public méthode

public HasPermission ( Role role ) : bool
role Role
Résultat bool

ListOfSessions() public méthode

public ListOfSessions ( ) : IList
Résultat IList

ToString() public méthode

public ToString ( ) : string
Résultat string

UpdateLastfmSession() public méthode

public UpdateLastfmSession ( string sessionKey ) : bool
sessionKey string
Résultat bool

UpdatePassword() public méthode

public UpdatePassword ( string password ) : bool
password string
Résultat bool

UpdateRole() public méthode

public UpdateRole ( Role role ) : bool
role Role
Résultat bool

UpdateSession() public méthode

public UpdateSession ( string sessionId ) : bool
sessionId string
Résultat bool

UpdateUsername() public méthode

public UpdateUsername ( string username ) : bool
username string
Résultat bool