C# Class IronPigeon.Providers.TwitterAddressBook

Discovers an address book entry by searching for the URL to it on the user's Twitter bio.
Inheritance: OnlineAddressBook
Datei anzeigen Open project: AArnott/IronPigeon Class Usage Examples

Public Methods

Method Description
LookupAsync ( string identifier, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Retrieves a contact with some user supplied identifier.

TwitterAddressBook ( ) : System

Initializes a new instance of the TwitterAddressBook class.

Private Methods

Method Description
DiscoverAddressBookEntryUrlAsync ( string twitterUsername, CancellationToken cancellationToken ) : Task

Searches for the URL to an IronPigeon address book entry in the specified Twitter account.

Method Details

LookupAsync() public method

Retrieves a contact with some user supplied identifier.
Thrown when a validation error occurs while reading the address book entry.
public LookupAsync ( string identifier, CancellationToken cancellationToken = default(CancellationToken) ) : Task
identifier string The user-supplied identifier for the contact.
cancellationToken System.Threading.CancellationToken A cancellation token.
return Task

TwitterAddressBook() public method

Initializes a new instance of the TwitterAddressBook class.
public TwitterAddressBook ( ) : System
return System