C# Class hubiquitus4w8.hapi.hStructures.HMessage

Version 0.5 hAPI Message. For more info, see Hubiquitus reference
Inheritance: Newtonsoft.Json.Linq.JObject
Afficher le fichier Open project: hubiquitus-old/hubiquitus4w8 Class Usage Examples

Méthodes publiques

Méthode Description
GetActor ( ) : string

Mandatory. channel id. NULL if undefined

GetAuthor ( ) : string

author of this message. NULL if undefined

GetConvid ( ) : string

Mandatory. Filled by the hApi if empty. conversation id. NULL if undefined

GetHeaders ( ) : Newtonsoft.Json.Linq.JObject

The list of headers attached to this message. NULL if undefined

GetLocation ( ) : HLocation

The geographical location to which the message refer. NULL if undefined

GetMsgid ( ) : string

Mandatory. Filled by the hApi. message id. NULL if undefined

GetPayloadAsBoolean ( ) : bool?

If payload type is boolean.

GetPayloadAsDouble ( ) : double?

If payload type is double.

GetPayloadAsHCommand ( ) : HCommand

If payload type is HCommand.

GetPayloadAsHResult ( ) : HResult

If payload type is HResult.

GetPayloadAsInt ( ) : int?

If payload type is int

GetPayloadAsJArray ( ) : Newtonsoft.Json.Linq.JArray

If payload type is JArray.

GetPayloadAsJObject ( ) : Newtonsoft.Json.Linq.JObject

if payload type is JObject

GetPayloadAsString ( ) : string

If payload type is string.

GetPersistent ( ) : bool?

If true, the message is not persistent. persist message or not. NULL if undefined

GetPriority ( ) : HMessagePriority?

If UNDEFINED, priority lower to 0.

GetPublished ( ) : long
GetPublishedAsDate ( ) : DateTime?

Mandatory. The date and time at which the message has been published. NULL if undefined

GetPublisher ( ) : string

Mandatory. publisher of this message. NULL if undefined

GetRef ( ) : string

GetRelevance ( ) : long

Timestamp until which the message is considered as relevant. NULL if undefined

GetRelevanceAsDate ( ) : DateTime?
GetSent ( ) : long
GetSentAsDate ( ) : DateTime?

GetTimeout ( ) : int

GetType ( ) : string

Get type of the message payload. NULL if undefined

HMessage ( ) : System
HMessage ( Newtonsoft.Json.Linq.JObject jsonObj ) : System
SetActor ( string actor ) : void
SetAuthor ( string author ) : void
SetConvid ( string convid ) : void
SetHeaders ( Newtonsoft.Json.Linq.JObject headers ) : void
SetLocation ( HLocation location ) : void
SetMsgid ( string msgid ) : void
SetPayload ( HCommand payload ) : void
SetPayload ( HResult payload ) : void
SetPayload ( Newtonsoft.Json.Linq.JArray payload ) : void
SetPayload ( Newtonsoft.Json.Linq.JObject payload ) : void
SetPayload ( JToken payload ) : void

Payload type could be instance of JSONObject(HAlert, HAck ...), JSONArray, String, Boolean, Number.

SetPayload ( bool payload ) : void
SetPayload ( double payload ) : void
SetPayload ( int payload ) : void
SetPayload ( string payload ) : void
SetPersistent ( bool persistent ) : void
SetPriority ( HMessagePriority priority ) : void
SetPublished ( System.DateTime published ) : void
SetPublished ( long published ) : void
SetPublisher ( string publisher ) : void
SetRef ( string @ref ) : void
SetRelevance ( System.DateTime relevance ) : void
SetRelevance ( long relevance ) : void
SetSent ( System.DateTime sent ) : void
SetSent ( long sent ) : void
SetTimeout ( int timeout ) : void
SetType ( string type ) : void

Method Details

GetActor() public méthode

Mandatory. channel id. NULL if undefined
public GetActor ( ) : string
Résultat string

GetAuthor() public méthode

author of this message. NULL if undefined
public GetAuthor ( ) : string
Résultat string

GetConvid() public méthode

Mandatory. Filled by the hApi if empty. conversation id. NULL if undefined
public GetConvid ( ) : string
Résultat string

GetHeaders() public méthode

The list of headers attached to this message. NULL if undefined
public GetHeaders ( ) : Newtonsoft.Json.Linq.JObject
Résultat Newtonsoft.Json.Linq.JObject

GetLocation() public méthode

The geographical location to which the message refer. NULL if undefined
public GetLocation ( ) : HLocation
Résultat HLocation

GetMsgid() public méthode

Mandatory. Filled by the hApi. message id. NULL if undefined
public GetMsgid ( ) : string
Résultat string

GetPayloadAsBoolean() public méthode

If payload type is boolean.
public GetPayloadAsBoolean ( ) : bool?
Résultat bool?

GetPayloadAsDouble() public méthode

If payload type is double.
public GetPayloadAsDouble ( ) : double?
Résultat double?

GetPayloadAsHCommand() public méthode

If payload type is HCommand.
public GetPayloadAsHCommand ( ) : HCommand
Résultat HCommand

GetPayloadAsHResult() public méthode

If payload type is HResult.
public GetPayloadAsHResult ( ) : HResult
Résultat HResult

GetPayloadAsInt() public méthode

If payload type is int
public GetPayloadAsInt ( ) : int?
Résultat int?

GetPayloadAsJArray() public méthode

If payload type is JArray.
public GetPayloadAsJArray ( ) : Newtonsoft.Json.Linq.JArray
Résultat Newtonsoft.Json.Linq.JArray

GetPayloadAsJObject() public méthode

if payload type is JObject
public GetPayloadAsJObject ( ) : Newtonsoft.Json.Linq.JObject
Résultat Newtonsoft.Json.Linq.JObject

GetPayloadAsString() public méthode

If payload type is string.
public GetPayloadAsString ( ) : string
Résultat string

GetPersistent() public méthode

If true, the message is not persistent. persist message or not. NULL if undefined
public GetPersistent ( ) : bool?
Résultat bool?

GetPriority() public méthode

If UNDEFINED, priority lower to 0.
public GetPriority ( ) : HMessagePriority?
Résultat HMessagePriority?

GetPublished() public méthode

public GetPublished ( ) : long
Résultat long

GetPublishedAsDate() public méthode

Mandatory. The date and time at which the message has been published. NULL if undefined
public GetPublishedAsDate ( ) : DateTime?
Résultat DateTime?

GetPublisher() public méthode

Mandatory. publisher of this message. NULL if undefined
public GetPublisher ( ) : string
Résultat string

GetRef() public méthode

public GetRef ( ) : string
Résultat string

GetRelevance() public méthode

Timestamp until which the message is considered as relevant. NULL if undefined
public GetRelevance ( ) : long
Résultat long

GetRelevanceAsDate() public méthode

public GetRelevanceAsDate ( ) : DateTime?
Résultat DateTime?

GetSent() public méthode

public GetSent ( ) : long
Résultat long

GetSentAsDate() public méthode

public GetSentAsDate ( ) : DateTime?
Résultat DateTime?

GetTimeout() public méthode

public GetTimeout ( ) : int
Résultat int

GetType() public méthode

Get type of the message payload. NULL if undefined
public GetType ( ) : string
Résultat string

HMessage() public méthode

public HMessage ( ) : System
Résultat System

HMessage() public méthode

public HMessage ( Newtonsoft.Json.Linq.JObject jsonObj ) : System
jsonObj Newtonsoft.Json.Linq.JObject
Résultat System

SetActor() public méthode

public SetActor ( string actor ) : void
actor string
Résultat void

SetAuthor() public méthode

public SetAuthor ( string author ) : void
author string
Résultat void

SetConvid() public méthode

public SetConvid ( string convid ) : void
convid string
Résultat void

SetHeaders() public méthode

public SetHeaders ( Newtonsoft.Json.Linq.JObject headers ) : void
headers Newtonsoft.Json.Linq.JObject
Résultat void

SetLocation() public méthode

public SetLocation ( HLocation location ) : void
location HLocation
Résultat void

SetMsgid() public méthode

public SetMsgid ( string msgid ) : void
msgid string
Résultat void

SetPayload() public méthode

public SetPayload ( HCommand payload ) : void
payload HCommand
Résultat void

SetPayload() public méthode

public SetPayload ( HResult payload ) : void
payload HResult
Résultat void

SetPayload() public méthode

public SetPayload ( Newtonsoft.Json.Linq.JArray payload ) : void
payload Newtonsoft.Json.Linq.JArray
Résultat void

SetPayload() public méthode

public SetPayload ( Newtonsoft.Json.Linq.JObject payload ) : void
payload Newtonsoft.Json.Linq.JObject
Résultat void

SetPayload() public méthode

Payload type could be instance of JSONObject(HAlert, HAck ...), JSONArray, String, Boolean, Number.
public SetPayload ( JToken payload ) : void
payload JToken
Résultat void

SetPayload() public méthode

public SetPayload ( bool payload ) : void
payload bool
Résultat void

SetPayload() public méthode

public SetPayload ( double payload ) : void
payload double
Résultat void

SetPayload() public méthode

public SetPayload ( int payload ) : void
payload int
Résultat void

SetPayload() public méthode

public SetPayload ( string payload ) : void
payload string
Résultat void

SetPersistent() public méthode

public SetPersistent ( bool persistent ) : void
persistent bool
Résultat void

SetPriority() public méthode

public SetPriority ( HMessagePriority priority ) : void
priority HMessagePriority
Résultat void

SetPublished() public méthode

public SetPublished ( System.DateTime published ) : void
published System.DateTime
Résultat void

SetPublished() public méthode

public SetPublished ( long published ) : void
published long
Résultat void

SetPublisher() public méthode

public SetPublisher ( string publisher ) : void
publisher string
Résultat void

SetRef() public méthode

public SetRef ( string @ref ) : void
@ref string
Résultat void

SetRelevance() public méthode

public SetRelevance ( System.DateTime relevance ) : void
relevance System.DateTime
Résultat void

SetRelevance() public méthode

public SetRelevance ( long relevance ) : void
relevance long
Résultat void

SetSent() public méthode

public SetSent ( System.DateTime sent ) : void
sent System.DateTime
Résultat void

SetSent() public méthode

public SetSent ( long sent ) : void
sent long
Résultat void

SetTimeout() public méthode

public SetTimeout ( int timeout ) : void
timeout int
Résultat void

SetType() public méthode

public SetType ( string type ) : void
type string
Résultat void