C# Class Mycroft.Cmd.Msg.Query

Inheritance: MsgCommand
Mostrar archivo Open project: rit-sse-mycroft/core

Protected Properties

Property Type Description
HasValidGuid bool
ShouldArchive bool
query Mycroft.Messages.Msg.MsgQuery

Public Methods

Method Description
Parse ( string data, AppInstance instance ) : Command

Get the Query object associated with this MSG_QUERY

Query ( MsgQuery query, AppInstance instance ) : System
VisitDispatcher ( Dispatcher dispatcher ) : void

If we should archive this message then add a new command to the dispatcher which does so.

VisitMessageArchive ( MessageArchive messageArchive ) : void

Check if this guid is already in the message archive If the GUID given already exists in the archive the app instance is notified and HasValidGuid is set to false

Method Details

Parse() public static method

Get the Query object associated with this MSG_QUERY
public static Parse ( string data, AppInstance instance ) : Command
data string the JSON data without a verb
instance AppInstance the app instance that issued this query
return Command

Query() public method

public Query ( MsgQuery query, AppInstance instance ) : System
query Mycroft.Messages.Msg.MsgQuery
instance AppInstance
return System

VisitDispatcher() public method

If we should archive this message then add a new command to the dispatcher which does so.
public VisitDispatcher ( Dispatcher dispatcher ) : void
dispatcher Dispatcher
return void

VisitMessageArchive() public method

Check if this guid is already in the message archive If the GUID given already exists in the archive the app instance is notified and HasValidGuid is set to false
public VisitMessageArchive ( MessageArchive messageArchive ) : void
messageArchive MessageArchive The archive to visit
return void

Property Details

HasValidGuid protected_oe property

protected bool HasValidGuid
return bool

ShouldArchive protected_oe property

protected bool ShouldArchive
return bool

query protected_oe property

protected MsgQuery,Mycroft.Messages.Msg query
return Mycroft.Messages.Msg.MsgQuery