Interface IDeviceUser
The interface for the Device functionality
Namespace: Phoenix.Users
Assembly: Phoenix.Abstractions.Users.dll
Syntax
[Obsolete("Implementation of this class has been removed. Use the device console library instead.", true)]
public interface IDeviceUser
Properties
View SourceDevice
Gets the Device.
Declaration
IDevice Device { get; }
Property Value
Type | Description |
---|---|
IDevice |
Methods
View SourceAddUserAsync(String, String)
Adds a user to the device.
Declaration
Task<PhoenixUser> AddUserAsync(string email, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | The email address to add. |
|
System.String | password | The password to use to sign in. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<PhoenixUser> | A task which will return a newly created PhoenixUser based on the device user. |
GetDefaultSignedInUserAsync()
Gets the default signed in user.
Declaration
Task<string> GetDefaultSignedInUserAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | the default signed in user |
GetUsersAsync()
Gets the users of the device.
Declaration
Task<IEnumerable<PhoenixUser>> GetUsersAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixUser>> | A list of users currently present. |
ImportFromUserFileAsync(String)
Imports users from the specified file. The file must at least contain the user's e-mail.
Declaration
Task<IEnumerable<SerializableUser>> ImportFromUserFileAsync(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | Path to the file to import from. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<SerializableUser>> | List of imported users or |
RemoveAllUsersAsync()
Removes all users from the device.
Declaration
Task RemoveAllUsersAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The task performing the request. |
RemoveUserAsync(String)
Removes the user from the device.
Declaration
Task RemoveUserAsync(string email)
Parameters
Type | Name | Description |
---|---|---|
System.String | The email associated with the user to remove. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The task performing the request. |
SetDefaultSignedInUserAsync(String)
Sets the default signed in user.
Declaration
Task SetDefaultSignedInUserAsync(string user)
Parameters
Type | Name | Description |
---|---|---|
System.String | user | The user to set. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | awaitable task |
SignInUserAsync(String, String)
Signs in a user to the device.
Declaration
Task<PhoenixUser> SignInUserAsync(string email, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | The email address to sign in. |
|
System.String | password | The password to use to sign in. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<PhoenixUser> | A task which will return the signed-in PhoenixUser based on the device user. |
SignOutUserAsync(String)
Signs out a user from the device.
Declaration
Task<PhoenixUser> SignOutUserAsync(string email)
Parameters
Type | Name | Description |
---|---|---|
System.String | The email address to sign out. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<PhoenixUser> | A task which will return the signed-out PhoenixUser based on the device user. |