C# 클래스 HarmonyHub.Internals.HarmonyDocuments

Internally used to create different documents to send to the harmony hub.
파일 보기 프로젝트 열기: hdurdle/harmony

공개 메소드들

메소드 설명
ConfigDocument ( ) : agsXMPP.Xml.Dom.Document

Create a document to request the current configuration

GetCurrentActivityDocument ( ) : agsXMPP.Xml.Dom.Document

Create a document to request the current activity to the harmony hub

IrCommandDocument ( string deviceId, string command, bool press = true, int timestamp = null ) : agsXMPP.Xml.Dom.Document

Create a document

LogitechPairDocument ( string token ) : agsXMPP.Xml.Dom.Document

Create a "pair" document, this is a bit different from the others

StartActivityDocument ( string activityId ) : agsXMPP.Xml.Dom.Document

Create a document to start an activity

비공개 메소드들

메소드 설명
CreateDocument ( HarmonyCommands command, string elementValue = null ) : agsXMPP.Xml.Dom.Document

Create a simple document for the command

CreateOaElement ( HarmonyCommands command ) : Element

Create the base oa element for harmony documents

메소드 상세

ConfigDocument() 공개 정적인 메소드

Create a document to request the current configuration
public static ConfigDocument ( ) : agsXMPP.Xml.Dom.Document
리턴 agsXMPP.Xml.Dom.Document

GetCurrentActivityDocument() 공개 정적인 메소드

Create a document to request the current activity to the harmony hub
public static GetCurrentActivityDocument ( ) : agsXMPP.Xml.Dom.Document
리턴 agsXMPP.Xml.Dom.Document

IrCommandDocument() 공개 정적인 메소드

Create a document
public static IrCommandDocument ( string deviceId, string command, bool press = true, int timestamp = null ) : agsXMPP.Xml.Dom.Document
deviceId string
command string
press bool true for press, false for release
timestamp int timestamp which harmony uses to order requests
리턴 agsXMPP.Xml.Dom.Document

LogitechPairDocument() 공개 정적인 메소드

Create a "pair" document, this is a bit different from the others
public static LogitechPairDocument ( string token ) : agsXMPP.Xml.Dom.Document
token string Token
리턴 agsXMPP.Xml.Dom.Document

StartActivityDocument() 공개 정적인 메소드

Create a document to start an activity
public static StartActivityDocument ( string activityId ) : agsXMPP.Xml.Dom.Document
activityId string Id for the activity
리턴 agsXMPP.Xml.Dom.Document