Updated on 2023-03-23 GMT+08:00

Canceling a Recurring Meeting Series

CancelCycleConf

API Description

This API is used to cancel a recurring meeting series that has at least one upcoming meeting.

Precautions

  1. Call this API after login.
  2. Call this API before the last recurring meeting starts. If the last recurring meeting is already in progress, calling this API is invalid.
  3. This API is an asynchronous API. The return value only indicates whether the API is successfully called. The actual service processing result is returned in the corresponding callback function.

Method Definition

1
HWM_SDK_AGENT_API hwmsdk::HwmErrCode CancelCycleConf(const HwmCancelCycleConfParam *cancelCycleConfParam);

Callback Function

1
virtual void OnCancelCycleConfResult(hwmsdk::HwmErrCode ret, const char* reason) {};

Parameter Description

Table 1 HwmCancelCycleConfParam parameters

Parameter

Mandatory

Type

Description

confId

Yes

char[]

Meeting ID.

endOnlineConf

Yes

bool

Whether to end an ongoing meeting.

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
/**
* Cancel a recurring meeting series.
*/
int demoConfListDlg::OnBnCancelCycleConf()
{
    hwmsdkagent::HwmCancelCycleConfParam cancelCycleConfParam{};
    cancelCycleConfParam.confId= CTools::UNICODE2UTF(CString("989156631"));
    cancelCycleConfParam.endOnlineConf = true;
    return hwmsdkagent::CancelCycleConf(cancelCycleConfParam);
}