Milestone SDK Mobile .Net
VideoOS.Mobile.SDK.Portable.Server.Base.Connection.ActionsCommands Class Reference

Actions related commands. More...

Inheritance diagram for VideoOS.Mobile.SDK.Portable.Server.Base.Connection.ActionsCommands:
VideoOS.Mobile.SDK.Portable.Server.Interfaces.IActionsAsync VideoOS.Mobile.SDK.Portable.Server.Interfaces.IActionsSync

Public Member Functions

 ActionsCommands (IConnection connection)
 Constructor.
 
IAsyncResult ActivateAction (ActivateParams activateParams, OnResponse< BaseCommandResponse > onSuccess=null, OnResponse< BaseCommandResponse > onFail=null)
 Method for activation of an action into the mobile server

Implemented by Connection object.
Sends message to the server and returns IAsyncResult.
If method succeeds IAsyncResult.AsyncState contains BaseCommandResponse.
Error status message could be obtained with query of IErrorResult (from the resulted IAsyncResult).
Parameters
activateParamsParametes for activating the action
onSuccessCallback called on success
onFailCallback called on fail
Returns
IAsyncResult implementer

 
BaseCommandResponse ActivateAction (ActivateParams activateParams, TimeSpan timeout)
 Method for activation of an action into the mobile server

Implemented by Connection object.
Sends message to the server and returns BaseCommandResponse.
Error status message could be obtained with query of IErrorResult.
Parameters
activateParamsParametes for activating the action
timeoutTime to wait the responce from the server
Returns
BaseCommandResponse object

 
IAsyncResult GetActions (OutputsEventsParams actionsParams, OnResponse< GetActionsResponse > onSuccess=null, OnResponse< GetActionsResponse > onFail=null)
 Method for request of actions from the Mobile Server

Implemented by Connection object.
Sends message to the server and returns IAsyncResult.
If method succeeds IAsyncResult.AsyncState contains GetActionsResponse object.
Error status message could be obtained with query of IErrorResult (from the resulted IAsyncResult).
Parameters
actionsParamsParametes for getting actions
onSuccessCallback called on success
onFailCallback called on fail
Returns
IAsyncResult implementer

 
GetActionsResponse GetActions (OutputsEventsParams actionsParams, TimeSpan timeout)
 Method for request of actions from the Mobile Server

Implemented by Connection object.
Sends message to the server and returns GetActionsResponse.
Error status message could be obtained with query of IErrorResult.
Parameters
actionsParamsParametes for getting actions
timeoutTime to wait the responce from the server
Returns
GetActionsResponse object

 
- Public Member Functions inherited from VideoOS.Mobile.SDK.Portable.Server.Interfaces.IActionsAsync
- Public Member Functions inherited from VideoOS.Mobile.SDK.Portable.Server.Interfaces.IActionsSync

Detailed Description

Actions related commands.

See also
IActionsAsync, IActionsSync

Constructor & Destructor Documentation

◆ ActionsCommands()

VideoOS.Mobile.SDK.Portable.Server.Base.Connection.ActionsCommands.ActionsCommands ( IConnection connection)
inline

Constructor.

Parameters
connectionIConnection implementer

Member Function Documentation

◆ ActivateAction() [1/2]

IAsyncResult VideoOS.Mobile.SDK.Portable.Server.Base.Connection.ActionsCommands.ActivateAction ( ActivateParams activateParams,
OnResponse< BaseCommandResponse > onSuccess = null,
OnResponse< BaseCommandResponse > onFail = null )
inline

Method for activation of an action into the mobile server

Implemented by Connection object.
Sends message to the server and returns IAsyncResult.
If method succeeds IAsyncResult.AsyncState contains BaseCommandResponse.
Error status message could be obtained with query of IErrorResult (from the resulted IAsyncResult).

Parameters
activateParamsParametes for activating the action
onSuccessCallback called on success
onFailCallback called on fail
Returns
IAsyncResult implementer

Implements VideoOS.Mobile.SDK.Portable.Server.Interfaces.IActionsAsync.

◆ ActivateAction() [2/2]

BaseCommandResponse VideoOS.Mobile.SDK.Portable.Server.Base.Connection.ActionsCommands.ActivateAction ( ActivateParams activateParams,
TimeSpan timeout )
inline

Method for activation of an action into the mobile server

Implemented by Connection object.
Sends message to the server and returns BaseCommandResponse.
Error status message could be obtained with query of IErrorResult.

Parameters
activateParamsParametes for activating the action
timeoutTime to wait the responce from the server
Returns
BaseCommandResponse object

Implements VideoOS.Mobile.SDK.Portable.Server.Interfaces.IActionsSync.

◆ GetActions() [1/2]

IAsyncResult VideoOS.Mobile.SDK.Portable.Server.Base.Connection.ActionsCommands.GetActions ( OutputsEventsParams actionsParams,
OnResponse< GetActionsResponse > onSuccess = null,
OnResponse< GetActionsResponse > onFail = null )
inline

Method for request of actions from the Mobile Server

Implemented by Connection object.
Sends message to the server and returns IAsyncResult.
If method succeeds IAsyncResult.AsyncState contains GetActionsResponse object.
Error status message could be obtained with query of IErrorResult (from the resulted IAsyncResult).

Parameters
actionsParamsParametes for getting actions
onSuccessCallback called on success
onFailCallback called on fail
Returns
IAsyncResult implementer

Implements VideoOS.Mobile.SDK.Portable.Server.Interfaces.IActionsAsync.

◆ GetActions() [2/2]

GetActionsResponse VideoOS.Mobile.SDK.Portable.Server.Base.Connection.ActionsCommands.GetActions ( OutputsEventsParams actionsParams,
TimeSpan timeout )
inline

Method for request of actions from the Mobile Server

Implemented by Connection object.
Sends message to the server and returns GetActionsResponse.
Error status message could be obtained with query of IErrorResult.

Parameters
actionsParamsParametes for getting actions
timeoutTime to wait the responce from the server
Returns
GetActionsResponse object

Implements VideoOS.Mobile.SDK.Portable.Server.Interfaces.IActionsSync.