Method | Description | |
---|---|---|
AddUser ( string username, string password ) : void | ||
DeleteUserById ( int id ) : void | ||
GetAllUsers ( ) : List |
||
GetUserById ( int id ) : User |
Return a clone of the user data object This is so that they are forced to use the update method rather than just changing the object directly.
|
|
GetUserByUsername ( string username ) : User |
Return a clone of the user data object This is so that they are forced to use the update method rather than just changing the object directly.
|
|
UpdateUserById ( int id, User newUser ) : void | ||
UserExistsById ( int id ) : bool | ||
UserExistsByUsername ( string username ) : bool |
Method | Description | |
---|---|---|
GetActualUserById ( int id ) : User |
Return the actual object reference for the user We can use this to search by reference in the List<>
|
|
GetActualUserByUsername ( string username ) : User |
Return the actual object reference for the user We can use this to search by reference in the List<>
|
Method | Description | |
---|---|---|
MemoryUserStore ( ) : System | ||
Reset ( ) : void |
public AddUser ( string username, string password ) : void | ||
username | string | |
password | string | |
return | void |
protected GetActualUserById ( int id ) : User | ||
id | int | |
return | User |
protected GetActualUserByUsername ( string username ) : User | ||
username | string | |
return | User |
public GetUserByUsername ( string username ) : User | ||
username | string | |
return | User |
public UpdateUserById ( int id, User newUser ) : void | ||
id | int | |
newUser | User | |
return | void |
public UserExistsByUsername ( string username ) : bool | ||
username | string | |
return | bool |