C# Class j64.Harmony.Xmpp.Hub

Mostra file Open project: joejarvis64/j64.Harmony Class Usage Examples

Public Methods

Method Description
ChangeChannel ( string channel, string channelDevice, int pauseBetweenKeypressInterval ) : void
GetConfig ( ) : void
GetUserAuthToken ( string username, string password ) : HarmonyAuthToken

Logs in to the Logitech Harmony web service to get a UserAuthToken.

OpenConnection ( string address, int port ) : void
SendCommand ( string deviceName, string command, string status ) : void
SetVolume ( int level, int previousLevel, string volumeDevice ) : void
StartChannelSurf ( string channelDevice ) : void
StartNewConnection ( string userName, string password, string address, int port ) : bool
StopChannelSurf ( ) : void

Private Methods

Method Description
EnsureConnection ( ) : void
GetAttributes ( XmlReader reader, XmlElement ele ) : void
ParseElement ( XmlReader reader, XmlElement parent, bool hasClosingElement ) : XmlElement
PingHarmony ( ) : void

Listen for data coming from the TPI

ResetConnection ( ) : void
SendReceiveSocketData ( string cmdData, int numNodes, bool directReadSocket = false, int retryCount ) : XmlDocument
SurfEm ( string channelDevice ) : void

Method Details

ChangeChannel() public method

public ChangeChannel ( string channel, string channelDevice, int pauseBetweenKeypressInterval ) : void
channel string
channelDevice string
pauseBetweenKeypressInterval int
return void

GetConfig() public method

public GetConfig ( ) : void
return void

GetUserAuthToken() public method

Logs in to the Logitech Harmony web service to get a UserAuthToken.
public GetUserAuthToken ( string username, string password ) : HarmonyAuthToken
username string myharmony.com username
password string myharmony.com password
return HarmonyAuthToken

OpenConnection() public method

public OpenConnection ( string address, int port ) : void
address string
port int
return void

SendCommand() public method

public SendCommand ( string deviceName, string command, string status ) : void
deviceName string
command string
status string
return void

SetVolume() public method

public SetVolume ( int level, int previousLevel, string volumeDevice ) : void
level int
previousLevel int
volumeDevice string
return void

StartChannelSurf() public method

public StartChannelSurf ( string channelDevice ) : void
channelDevice string
return void

StartNewConnection() public method

public StartNewConnection ( string userName, string password, string address, int port ) : bool
userName string
password string
address string
port int
return bool

StopChannelSurf() public method

public StopChannelSurf ( ) : void
return void