ConnectedDevicesAccount Class

  • java.lang.Object
    • NativeBase
      • com.microsoft.connecteddevices.ConnectedDevicesAccount

public class ConnectedDevicesAccount

This class represents a single user account known by an app.

Constructor Summary

Constructor Description
ConnectedDevicesAccount(@NonNull String id, @NonNull ConnectedDevicesAccountType type)

Creates and initializes a new instance of this class with an ID string and account type definition.

Method Summary

Modifier and Type Method and Description
ConnectedDevicesAccount getAnonymousAccount()

Returns the singleton instance of the Anonymous account.

String getId()

Gets the unique identifier for this user account.

ConnectedDevicesAccountType getType()

Gets the type of account.

Constructor Details

ConnectedDevicesAccount

public ConnectedDevicesAccount(@NonNull String id, @NonNull ConnectedDevicesAccountType type)

Creates and initializes a new instance of this class with an ID string and account type definition.

Parameters:

id - A unique identifier string for this user account.
type - The **ConnectedDevicesAccountType** of the account (depends on which ID provider the account is from).

Method Details

getAnonymousAccount

public static ConnectedDevicesAccount getAnonymousAccount()

Returns the singleton instance of the Anonymous account.

Returns:

ConnectedDevicesAccount

getId

public String getId()

Gets the unique identifier for this user account.

Returns:

The unique identifier String for this user account.

getType

public ConnectedDevicesAccountType getType()

Gets the type of account.

Returns:

A **ConnectedDevicesAccountType** value describing the type of account.

Applies to