C# Class Pushover_plugin.WebhookDestination

Inheritance: Growl.Destinations.ForwardDestination
Show file Open project: Vorror/GrowlForWindowsPushover

Public Methods

Method Description
Clone ( ) : Growl.Destinations.DestinationBase

Clones this instance.

ConvertNotificationStyle ( Growl notification ) : int

Converts Growl styled notifcations to Pushover Styled notifications

ForwardNotification ( Growl notification, Growl callbackContext, Growl requestInfo, bool isIdle, Growl.Destinations.ForwardDestination callbackFunction ) : void

Called when a notification is received by GfW.

ForwardRegistration ( Growl application, List notificationTypes, Growl requestInfo, bool isIdle ) : void

Called when an application registration is received by GfW.

GetIcon ( ) : System.Drawing.Image

Gets the icon that represents this type of forwarder.

ReturnDeviceName ( string device ) : string
ReturnSoundName ( int selectedSound ) : string
WebhookDestination ( string name, string api, bool sendIfIdle, int selectedpriority, int selectedSound, string device ) : System

Initializes a new instance of the WebhookDestination class.

converttolocal ( int priority ) : int

Converts Selected Priority to mode styled priorty

Method Details

Clone() public method

Clones this instance.
public Clone ( ) : Growl.Destinations.DestinationBase
return Growl.Destinations.DestinationBase

ConvertNotificationStyle() public method

Converts Growl styled notifcations to Pushover Styled notifications
public ConvertNotificationStyle ( Growl notification ) : int
notification Growl The notification information
return int

ForwardNotification() public method

Called when a notification is received by GfW.
public ForwardNotification ( Growl notification, Growl callbackContext, Growl requestInfo, bool isIdle, Growl.Destinations.ForwardDestination callbackFunction ) : void
notification Growl The notification information
callbackContext Growl The callback context.
requestInfo Growl The request info.
isIdle bool true if the user is currently idle;false otherwise
callbackFunction Growl.Destinations.ForwardDestination The function GfW will run if this notification is responded to on the forwarded computer
return void

ForwardRegistration() public method

Called when an application registration is received by GfW.
public ForwardRegistration ( Growl application, List notificationTypes, Growl requestInfo, bool isIdle ) : void
application Growl The application.
notificationTypes List The notification types.
requestInfo Growl The request info.
isIdle bool true if the user is currently idle;false otherwise
return void

GetIcon() public method

Gets the icon that represents this type of forwarder.
public GetIcon ( ) : System.Drawing.Image
return System.Drawing.Image

ReturnDeviceName() public method

public ReturnDeviceName ( string device ) : string
device string
return string

ReturnSoundName() public method

public ReturnSoundName ( int selectedSound ) : string
selectedSound int
return string

WebhookDestination() public method

Initializes a new instance of the WebhookDestination class.
public WebhookDestination ( string name, string api, bool sendIfIdle, int selectedpriority, int selectedSound, string device ) : System
name string
api string
sendIfIdle bool
selectedpriority int
selectedSound int
device string
return System

converttolocal() public method

Converts Selected Priority to mode styled priorty
public converttolocal ( int priority ) : int
priority int
return int