Add API for unregister sip phone device, masked callee, etc.

This commit is contained in:
sdk-team
2021-11-29 08:54:14 +00:00
parent 4095ec22b9
commit fe11ae7d12
28 changed files with 728 additions and 33 deletions

View File

@@ -156,6 +156,10 @@
#include "model/ListRecentCallDetailRecordsResult.h"
#include "model/ListRolesRequest.h"
#include "model/ListRolesResult.h"
#include "model/ListSipCallRecordsRequest.h"
#include "model/ListSipCallRecordsResult.h"
#include "model/ListSipTracesRequest.h"
#include "model/ListSipTracesResult.h"
#include "model/ListSkillGroupsRequest.h"
#include "model/ListSkillGroupsResult.h"
#include "model/ListSkillLevelsOfUserRequest.h"
@@ -454,6 +458,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListRolesResult> ListRolesOutcome;
typedef std::future<ListRolesOutcome> ListRolesOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListRolesRequest&, const ListRolesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRolesAsyncHandler;
typedef Outcome<Error, Model::ListSipCallRecordsResult> ListSipCallRecordsOutcome;
typedef std::future<ListSipCallRecordsOutcome> ListSipCallRecordsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListSipCallRecordsRequest&, const ListSipCallRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSipCallRecordsAsyncHandler;
typedef Outcome<Error, Model::ListSipTracesResult> ListSipTracesOutcome;
typedef std::future<ListSipTracesOutcome> ListSipTracesOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListSipTracesRequest&, const ListSipTracesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSipTracesAsyncHandler;
typedef Outcome<Error, Model::ListSkillGroupsResult> ListSkillGroupsOutcome;
typedef std::future<ListSkillGroupsOutcome> ListSkillGroupsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListSkillGroupsRequest&, const ListSkillGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSkillGroupsAsyncHandler;
@@ -792,6 +802,12 @@ namespace AlibabaCloud
ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const;
void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const;
ListSipCallRecordsOutcome listSipCallRecords(const Model::ListSipCallRecordsRequest &request)const;
void listSipCallRecordsAsync(const Model::ListSipCallRecordsRequest& request, const ListSipCallRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSipCallRecordsOutcomeCallable listSipCallRecordsCallable(const Model::ListSipCallRecordsRequest& request) const;
ListSipTracesOutcome listSipTraces(const Model::ListSipTracesRequest &request)const;
void listSipTracesAsync(const Model::ListSipTracesRequest& request, const ListSipTracesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSipTracesOutcomeCallable listSipTracesCallable(const Model::ListSipTracesRequest& request) const;
ListSkillGroupsOutcome listSkillGroups(const Model::ListSkillGroupsRequest &request)const;
void listSkillGroupsAsync(const Model::ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSkillGroupsOutcomeCallable listSkillGroupsCallable(const Model::ListSkillGroupsRequest& request) const;

View File

@@ -38,16 +38,16 @@ namespace AlibabaCloud
explicit CreateCampaignResult(const std::string &payload);
~CreateCampaignResult();
std::string getMessage()const;
std::string getCampaignId()const;
long getHttpStatusCode()const;
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string campaignId_;
long httpStatusCode_;
std::string data_;
std::string code_;
};

View File

@@ -69,27 +69,38 @@ namespace AlibabaCloud
std::string queueName;
int queueType;
};
struct CustomerEventsItem
{
struct EventSequenceItem6
{
long eventTime;
std::string event;
};
std::vector<CustomerEventsItem::EventSequenceItem6> eventSequence5;
std::string customerId;
};
std::vector<AgentEventsItem> agentEvents;
std::string skillGroupIds;
std::string calledNumber;
std::string contactType;
std::string releaseInitiator;
std::string contactDisposition;
std::string instanceId;
int satisfaction;
long startTime;
std::string contactId;
long callDuration;
std::string callingNumber;
std::vector<QueueEventsItem> queueEvents;
std::string calleeLocation;
bool recordingReady;
long releaseTime;
std::vector<CustomerEventsItem> customerEvents;
std::string skillGroupNames;
std::string satisfactionSurveyChannel;
std::string agentIds;
bool satisfactionSurveyOffered;
long establishedTime;
std::string skillGroupIds;
std::string releaseInitiator;
std::string instanceId;
long startTime;
long callDuration;
std::vector<QueueEventsItem> queueEvents;
std::string calleeLocation;
long releaseTime;
std::string satisfactionSurveyChannel;
std::string agentIds;
std::string callerLocation;
std::string agentNames;
std::vector<IvrEventsItem> ivrEvents;

View File

@@ -50,7 +50,6 @@ namespace AlibabaCloud
bool simulation;
std::string campaignId;
std::string state;
long completedRate;
long actualEndTime;
long planedEndTime;
std::string queueName;

View File

@@ -51,7 +51,6 @@ namespace AlibabaCloud
bool simulation;
std::string campaignId;
std::string state;
long completedRate;
long actualEndTime;
long planedEndTime;
std::string queueName;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListSipCallRecordsRequest : public RpcServiceRequest
{
public:
ListSipCallRecordsRequest();
~ListSipCallRecordsRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getContactIdList()const;
void setContactIdList(const std::string& contactIdList);
private:
std::string instanceId_;
std::string contactIdList_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSREQUEST_H_

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListSipCallRecordsResult : public ServiceResult
{
public:
struct SipCallRecords
{
std::string callee;
std::string lastResponseText;
std::string callerClusterId;
std::string calleeClusterId;
std::string instanceId;
std::string callId;
int releaseReasonCode;
std::string contactId;
long ringTime;
long inviteTime;
std::string earlyMediaText;
long releasedTime;
std::string caller;
int lastResponseCode;
long establishedTime;
std::string earlyMediaUrl;
};
ListSipCallRecordsResult();
explicit ListSipCallRecordsResult(const std::string &payload);
~ListSipCallRecordsResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<SipCallRecords> getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<SipCallRecords> data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPCALLRECORDSRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListSipTracesRequest : public RpcServiceRequest
{
public:
ListSipTracesRequest();
~ListSipTracesRequest();
std::string getCallId()const;
void setCallId(const std::string& callId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
std::string callId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESREQUEST_H_

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListSipTracesResult : public ServiceResult
{
public:
struct CallTraces
{
std::string destinationNodeIp;
std::string callId;
std::string firstLine;
std::string payload;
std::string contactId;
long timestamp;
std::string sourceNodeIp;
};
ListSipTracesResult();
explicit ListSipTracesResult(const std::string &payload);
~ListSipTracesResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<CallTraces> getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<CallTraces> data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSIPTRACESRESULT_H_

View File

@@ -38,8 +38,8 @@ namespace AlibabaCloud
{
std::string description;
std::string skillGroupName;
std::string instanceId;
int phoneNumberCount;
std::string instanceId;
int userCount;
std::string displayName;
std::string skillGroupId;

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getCallee()const;
void setCallee(const std::string& callee);
std::string getMaskedCallee()const;
void setMaskedCallee(const std::string& maskedCallee);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getDeviceId()const;
@@ -52,6 +54,7 @@ namespace AlibabaCloud
private:
std::string callee_;
std::string maskedCallee_;
std::string userId_;
std::string deviceId_;
std::string tags_;

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setContactFlowId(const std::string& contactFlowId);
std::string getCallee()const;
void setCallee(const std::string& callee);
std::string getMaskedCallee()const;
void setMaskedCallee(const std::string& maskedCallee);
std::string getContactFlowVariables()const;
void setContactFlowVariables(const std::string& contactFlowVariables);
std::string getTags()const;
@@ -53,6 +55,7 @@ namespace AlibabaCloud
private:
std::string contactFlowId_;
std::string callee_;
std::string maskedCallee_;
std::string contactFlowVariables_;
std::string tags_;
int timeoutSeconds_;