QtsHttp  0.9.1
Public Member Functions | List of all members
QtsHttp.System.IQtsHttpSystem Interface Reference

Interface for Qts Http system API. More...

Public Member Functions

bool DestroyRequest (IRequestBase request)
 Destroy system request after system API complete. More...
 
Task< SettingInfoGetSystemSetting (CancellationTokenSource reqCancellation)
 Get system setting of QNAP Turbo NAS. Please using try catch mechanism to call this function. More...
 
Task EnableFileStation (CancellationTokenSource reqCancellation)
 Enable file station service of QNAP Turbo NAS. Please using try catch mechanism to call this function. More...
 
Task< IRequestBaseGetSystemSettingAsync (object objExtData, AsyncResponseCallback systemCallback)
 [Async] Get system setting of QNAP Turbo NAS. More...
 
Task< IRequestBaseEnableFileStationAsync (object objExtData, AsyncResponseCallback systemCallback)
 [Async] Enable file station service of QNAP Turbo NAS. More...
 

Detailed Description

Interface for Qts Http system API.

  1. Support system related API.
  2. Support sync and async API.

Member Function Documentation

bool QtsHttp.System.IQtsHttpSystem.DestroyRequest ( IRequestBase  request)

Destroy system request after system API complete.

Parameters
[IN]request : System request.
Returns
true : Destroy system request success.
false : Destroy system request fail.
Task QtsHttp.System.IQtsHttpSystem.EnableFileStation ( CancellationTokenSource  reqCancellation)

Enable file station service of QNAP Turbo NAS. Please using try catch mechanism to call this function.

Parameters
[IN]reqCancellation : Cancel API.
Returns
APIResult : API success or fail error code.
Task<IRequestBase> QtsHttp.System.IQtsHttpSystem.EnableFileStationAsync ( object  objExtData,
AsyncResponseCallback  systemCallback 
)

[Async] Enable file station service of QNAP Turbo NAS.

Parameters
[IN]objExtData : Callback function owner.
[IN]pfHttpSYSCallback : System async callback function.
Returns
IRequestBase : System request object.
Task<SettingInfo> QtsHttp.System.IQtsHttpSystem.GetSystemSetting ( CancellationTokenSource  reqCancellation)

Get system setting of QNAP Turbo NAS. Please using try catch mechanism to call this function.

Parameters
[IN]reqCancellation : Cancel API.
Returns
SettingInfo : System setting information of QNAP Turbo NAS.
Task<IRequestBase> QtsHttp.System.IQtsHttpSystem.GetSystemSettingAsync ( object  objExtData,
AsyncResponseCallback  systemCallback 
)

[Async] Get system setting of QNAP Turbo NAS.

Parameters
[IN]objExtData : Callback function owner.
[IN]pfHttpSYSCallback : System async callback function.
Returns
RequestBase : System request object.

The documentation for this interface was generated from the following file: