HARequestType
public enum HARequestType : Hashable, Comparable, ExpressibleByStringLiteral
The command to issue
-
Sent over WebSocket, the command of the request
Declaration
Swift
case webSocket(String) -
Sent over REST, the HTTP method to use and the post-
api/pathDeclaration
Swift
case rest(HAHTTPMethod, String) -
Sent over WebSocket, the stt binary handler id
Declaration
Swift
case sttData(HASttHandlerId) -
Create a WebSocket request type by string literal
Declaration
Swift
public init(stringLiteral value: StringLiteralType)Parameters
valueThe name of the WebSocket command
-
The command of the request, agnostic of protocol type
Declaration
Swift
public var command: String { get } -
The request is issued outside of the lifecycle of a connection
Declaration
Swift
public var isPerpetual: Bool { get } -
Sort the request type by command name
Declaration
Swift
public static func < (lhs: HARequestType, rhs: HARequestType) -> BoolParameters
lhsThe first type to compare
rhsThe second value to compare
Return Value
Whether the first type preceeds the second
-
call_serviceDeclaration
Swift
public static var callService: `Self` -
auth/current_userDeclaration
Swift
public static var currentUser: `Self` -
get_statesDeclaration
Swift
public static var getStates: `Self` -
get_configDeclaration
Swift
public static var getConfig: `Self` -
get_servicesDeclaration
Swift
public static var getServices: `Self`
-
subscribe_eventsDeclaration
Swift
public static var subscribeEvents: `Self` -
unsubscribe_eventsDeclaration
Swift
public static var unsubscribeEvents: `Self` -
subscribe_entitiesDeclaration
Swift
public static var subscribeEntities: `Self`
-
render_templateDeclaration
Swift
public static var renderTemplate: `Self`
View on GitHub