C# Класс Goedel.Mesh.MeshClient

High level Mesh Client interface.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AccountID string
AccountName string
Portal string
UDF string

Защищенные свойства (Protected)

Свойство Тип Описание
MeshService MeshService

Открытые методы

Метод Описание
ConnectClose ( SignedConnectionRequest SignedConnectionRequest, ConnectionStatus ConnectionStatus ) : ConnectCompleteResponse

Close a pending device connection request.

ConnectPending ( ) : ConnectPendingResponse

Get a list of pending device connection requests.

ConnectRequest ( SignedDeviceProfile SignedDeviceProfile ) : ConnectStartResponse

Initiate a device connection request.

ConnectStatus ( string UDF ) : ConnectStatusResponse

Get status for a pending device connection request.

CreatePersonalProfile ( string AccountID, SignedPersonalProfile SignedCurrentProfile ) : CreateResponse

Create a new account and set the personal profile

GetApplicationProfile ( string ID ) : SignedApplicationProfile

Retrieve an application profile by unique ID.

GetMailProfile ( ) : MailProfile

Retreive the default mail profile.

GetNetworkProfile ( ) : NetworkProfile

Retreive the default network profile.

GetPasswordProfile ( ) : PasswordProfile

Retreive the default password profile.

GetPersonalProfile ( ) : SignedPersonalProfile

Get the active profile associated with the current account.

MakeDefault ( string UDF ) : void

Make the current portal and account name the default

MeshClient ( string Portal ) : System

Connect up to the specified Mesh Portal

MeshClient ( string Portal, string AccountID ) : System

Connect up to a specified Mesh Portal and account.

Publish ( OfflineEscrowEntry OfflineEscrowEntry ) : PublishResponse

Publish an offline escrow entry to the mesh.

Publish ( SignedProfile SignedProfile ) : PublishResponse

Publish a signed profile entry to the mesh.

Recover ( string Identifier ) : OfflineEscrowEntry

Recover an offline escrow entry

Validate ( string Account ) : ValidateResponse

Check to see if an account name is acceptable for use at a portal. Note that a positive response to a validation request does not guarantee that the account name will be available for a subsequent call to CreatePersonalProfile.

Описание методов

ConnectClose() публичный Метод

Close a pending device connection request.
public ConnectClose ( SignedConnectionRequest SignedConnectionRequest, ConnectionStatus ConnectionStatus ) : ConnectCompleteResponse
SignedConnectionRequest SignedConnectionRequest The connection request to close.
ConnectionStatus ConnectionStatus The status to set.
Результат ConnectCompleteResponse

ConnectPending() публичный Метод

Get a list of pending device connection requests.
public ConnectPending ( ) : ConnectPendingResponse
Результат ConnectPendingResponse

ConnectRequest() публичный Метод

Initiate a device connection request.
public ConnectRequest ( SignedDeviceProfile SignedDeviceProfile ) : ConnectStartResponse
SignedDeviceProfile SignedDeviceProfile The device profile to register.
Результат ConnectStartResponse

ConnectStatus() публичный Метод

Get status for a pending device connection request.
public ConnectStatus ( string UDF ) : ConnectStatusResponse
UDF string Fingerprint of the device that requested the connection.
Результат ConnectStatusResponse

CreatePersonalProfile() публичный Метод

Create a new account and set the personal profile
public CreatePersonalProfile ( string AccountID, SignedPersonalProfile SignedCurrentProfile ) : CreateResponse
AccountID string The requested account identifier.
SignedCurrentProfile SignedPersonalProfile The personal profile to use.
Результат CreateResponse

GetApplicationProfile() публичный Метод

Retrieve an application profile by unique ID.
public GetApplicationProfile ( string ID ) : SignedApplicationProfile
ID string the unique id of the profile.
Результат SignedApplicationProfile

GetMailProfile() публичный Метод

Retreive the default mail profile.
public GetMailProfile ( ) : MailProfile
Результат MailProfile

GetNetworkProfile() публичный Метод

Retreive the default network profile.
public GetNetworkProfile ( ) : NetworkProfile
Результат NetworkProfile

GetPasswordProfile() публичный Метод

Retreive the default password profile.
public GetPasswordProfile ( ) : PasswordProfile
Результат PasswordProfile

GetPersonalProfile() публичный Метод

Get the active profile associated with the current account.
public GetPersonalProfile ( ) : SignedPersonalProfile
Результат SignedPersonalProfile

MakeDefault() публичный Метод

Make the current portal and account name the default
public MakeDefault ( string UDF ) : void
UDF string Fingerprint of the profile to make default.
Результат void

MeshClient() публичный Метод

Connect up to the specified Mesh Portal
public MeshClient ( string Portal ) : System
Portal string The portal to connect to.
Результат System

MeshClient() публичный Метод

Connect up to a specified Mesh Portal and account.
public MeshClient ( string Portal, string AccountID ) : System
Portal string The portal to connect to.
AccountID string The account identifier.
Результат System

Publish() публичный Метод

Publish an offline escrow entry to the mesh.
public Publish ( OfflineEscrowEntry OfflineEscrowEntry ) : PublishResponse
OfflineEscrowEntry OfflineEscrowEntry The escrow entry to publish
Результат PublishResponse

Publish() публичный Метод

Publish a signed profile entry to the mesh.
public Publish ( SignedProfile SignedProfile ) : PublishResponse
SignedProfile SignedProfile The profile to publish
Результат PublishResponse

Recover() публичный Метод

Recover an offline escrow entry
public Recover ( string Identifier ) : OfflineEscrowEntry
Identifier string The UDF of the decryption key
Результат OfflineEscrowEntry

Validate() публичный Метод

Check to see if an account name is acceptable for use at a portal. Note that a positive response to a validation request does not guarantee that the account name will be available for a subsequent call to CreatePersonalProfile.
public Validate ( string Account ) : ValidateResponse
Account string The requested account name.
Результат ValidateResponse

Описание свойств

AccountID публичное свойство

The account Identifier.
public string AccountID
Результат string

AccountName публичное свойство

The account name.
public string AccountName
Результат string

MeshService защищенное свойство

The MeshProtocol Service provider.
protected MeshService,Goedel.Mesh MeshService
Результат MeshService

Portal публичное свойство

The portal address.
public string Portal
Результат string

UDF публичное свойство

Fingerprint of the Personal Profile.
public string UDF
Результат string