Class Facade

Module: keychain

Inheritance: facade

Facade

Facade encapsulates the methods in common between Personas 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 information from the methods is a static snapshot of the state of the Facade objects at the time the object was created.

Method Summary

Return type Method and Description

bool

is_mature()

Whether the facade status has reached CONFIRMED state previously.

string

name()

Get the name attribute.

PersonaStatus

status()

Get the blockchain status.

string

subname()

Get the subname attribute.

uri

uri()

Get the blockchain URI.

bool

is_null()

Null object pattern.


Methods

is_mature() Method

bool is_mature();

Whether the facade status has ever reached CONFIRMED state.

Parameters

None

Returns

bool

true if the facade has ever been CONFIRMED, otherwise false.




name() Method

string name();

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

Parameters

None

Returns

string

The name.




status() Method

PersonaStatus status();

Get the facade blockchain confirmation status.

Parameters

None

Returns

``

The status.




subname() Method

string subname();

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

Parameters

None

Returns

int

The id.




uri() Method

Uri uri();

Get the facade URI.

Parameters

None

Returns

uri

The URI.




is_null() Method

bool is_null();

Whether the facade is NULL (NULL pattern).

Parameters

None

Returns

boolean

whether the facade is NULL.