C# Class Pushover.PushoverClient

Afficher le fichier Open project: mattmelling/pushover-dotnet Class Usage Examples

Méthodes publiques

Méthode Description
Push ( IPushoverMessage message ) : void

Push a new message

PushoverClient ( string apiKey ) : System

Create a new Pushover client.

PushoverClient ( string apiKey, string endpoint ) : System

Create a new Pushover client

Private Methods

Méthode Description
GetResponseText ( WebResponse response ) : string

Read the response out as a string

ProcessErrorResponse ( string response ) : string

Parses an error response and returns an error description

Method Details

Push() public méthode

Push a new message
public Push ( IPushoverMessage message ) : void
message IPushoverMessage The message to push
Résultat void

PushoverClient() public méthode

Create a new Pushover client.
public PushoverClient ( string apiKey ) : System
apiKey string Your Pushover API key
Résultat System

PushoverClient() public méthode

Create a new Pushover client
public PushoverClient ( string apiKey, string endpoint ) : System
apiKey string Your pushover API key
endpoint string Alternative XML endpoint to push messages to
Résultat System