Class PhoenixUser
An abstract class to create device specific users.
Inheritance
System.Object
PhoenixUser
Namespace: Phoenix.Users
Assembly: Phoenix.Abstractions.Users.dll
Syntax
public class PhoenixUser : BindableBase
Constructors
View SourcePhoenixUser(IDevice, String, String)
Initializes a new instance of the PhoenixUser class.
Declaration
public PhoenixUser(IDevice device, string id, string email)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | The device the email was/will be registered to. |
System.String | id | The unique id of the user. |
System.String | The email of the user. |
PhoenixUser(IDevice, String, String, String, Boolean)
Initializes a new instance of the PhoenixUser class.
Declaration
public PhoenixUser(IDevice device, string id, string email, string friendlyName, bool isSignedIn)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | The device the email was/will be registered to. |
System.String | id | The unique id of the user. |
System.String | The email of the user. |
|
System.String | friendlyName | The friendly name. |
System.Boolean | isSignedIn | Value indicates whether user is signed in or not. |
Properties
View SourceDevice
Gets the device associated with this user.
Declaration
public IDevice Device { get; }
Property Value
Type | Description |
---|---|
IDevice |
Gets the user email address.
Declaration
public string Email { get; }
Property Value
Type | Description |
---|---|
System.String |
FriendlyName
Gets the friendly name of the user.
Declaration
public string FriendlyName { get; }
Property Value
Type | Description |
---|---|
System.String |
Id
Gets the user's unique id.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
IsSignedIn
Gets or sets a value indicating whether the user is signed in or not.
Declaration
public bool IsSignedIn { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Password
Gets or sets the user password.
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceSerialize()
Serializes this user.
Declaration
public SerializableUser Serialize()
Returns
Type | Description |
---|---|
SerializableUser | A new serialized instance. |