Class Facade

Namespace: Keychain

Assemblies: libkeychain.dll

Inheritance: Object → Facade

Facade

Facade encapsulates the methods in common between Persona and Contacts for use in methods in other classes that can take either class. These classes provide basic information about the related keychains such as the maturity (blockchain confirmation) level of the two keychains and the base URI.

The distinction between a Persona and a Contacts is that a Gateway creates a Persona locally whereas a Contact is created by another device.

The information from the methods is a static snapshot of the state of the Persona or Contacts objects at the time the object was created.

Method Summary

Return type Method and Description

int

getId()

Get the facade ID.

string

getName()

Get the name attribute.

PersonaStatus

getStatus()

Get the blockchain status.

string

getSubName()

Get the subname attribute.

Uri

getUri()

Get the blockchain URI.

bool

isNull()

Null object pattern.


Methods

getId() Method

public int getId();

Get the Facade id. IDs are unique within each Gateway instance.

Parameters

None

Returns

int

The id.




getName() Method

public int getName();

Get the Facade name, which is a local attribute initially associated with the Facade at its creation time.

Parameters

None

Returns

string

The name.




getStatus() Method

public PersonaStatus getStatus();

Get the Facade blockchain confirmation status.

Parameters

None

Returns

``

The status.




getSubName() Method

public int getSubName();

Get the Facade subname, which is a local attribute initially associated with the Facade at its creation time.

Parameters

None

Returns

int

The id.




getUri() Method

public Uri getUri();

Get the Facade URI.

Parameters

None

Returns

Uri

The URI.




isNull() Method

public bool isNull();

Whether the Facade is NULL.

Parameters

None

Returns

boolean

whether the Facade is NULL.