C# Class Pushover.PushoverClient

显示文件 Open project: mattmelling/pushover-dotnet Class Usage Examples

Public Methods

Method 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

Method 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 method

Push a new message
public Push ( IPushoverMessage message ) : void
message IPushoverMessage The message to push
return void

PushoverClient() public method

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

PushoverClient() public method

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
return System