Support AUTH for CreateEventSubscribe.

This commit is contained in:
sdk-team
2021-12-30 08:00:22 +00:00
parent 1d81df8694
commit 8a2d243786
6 changed files with 35 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2021-12-30 Version: 1.36.1006
- Support AUTH for CreateEventSubscribe.
2021-12-30 Version: 1.36.1005 2021-12-30 Version: 1.36.1005
- Update by sdk platform. - Update by sdk platform.

View File

@@ -1 +1 @@
1.36.1005 1.36.1006

View File

@@ -32,6 +32,8 @@ public:
~CreateEventSubscribeRequest(); ~CreateEventSubscribeRequest();
std::string getClientToken() const; std::string getClientToken() const;
void setClientToken(const std::string &clientToken); void setClientToken(const std::string &clientToken);
bool getNeedCallbackAuth() const;
void setNeedCallbackAuth(bool needCallbackAuth);
std::vector<std::string> getEvents() const; std::vector<std::string> getEvents() const;
void setEvents(const std::vector<std::string> &events); void setEvents(const std::vector<std::string> &events);
std::string getShowLog() const; std::string getShowLog() const;
@@ -49,6 +51,7 @@ public:
private: private:
std::string clientToken_; std::string clientToken_;
bool needCallbackAuth_;
std::vector<std::string> events_; std::vector<std::string> events_;
std::string showLog_; std::string showLog_;
long ownerId_; long ownerId_;

View File

@@ -80,6 +80,9 @@ public:
bool enableUserPaneBackground; bool enableUserPaneBackground;
std::string backgroundPath; std::string backgroundPath;
}; };
struct OutputStreamParams {
std::string streamURL;
};
struct Backgrounds { struct Backgrounds {
float width; float width;
float height; float height;
@@ -131,6 +134,8 @@ public:
void setCropMode(int cropMode); void setCropMode(int cropMode);
std::vector<std::string> getSubSpecCameraUsers() const; std::vector<std::string> getSubSpecCameraUsers() const;
void setSubSpecCameraUsers(const std::vector<std::string> &subSpecCameraUsers); void setSubSpecCameraUsers(const std::vector<std::string> &subSpecCameraUsers);
std::vector<OutputStreamParams> getOutputStreamParams() const;
void setOutputStreamParams(const std::vector<OutputStreamParams> &outputStreamParams);
std::string getTaskProfile() const; std::string getTaskProfile() const;
void setTaskProfile(const std::string &taskProfile); void setTaskProfile(const std::string &taskProfile);
std::vector<long> getLayoutIds() const; std::vector<long> getLayoutIds() const;
@@ -177,6 +182,7 @@ private:
int rtpExtInfo_; int rtpExtInfo_;
int cropMode_; int cropMode_;
std::vector<std::string> subSpecCameraUsers_; std::vector<std::string> subSpecCameraUsers_;
std::vector<OutputStreamParams> outputStreamParams_;
std::string taskProfile_; std::string taskProfile_;
std::vector<long> layoutIds_; std::vector<long> layoutIds_;
std::string streamURL_; std::string streamURL_;

View File

@@ -34,6 +34,15 @@ void CreateEventSubscribeRequest::setClientToken(const std::string &clientToken)
setParameter(std::string("ClientToken"), clientToken); setParameter(std::string("ClientToken"), clientToken);
} }
bool CreateEventSubscribeRequest::getNeedCallbackAuth() const {
return needCallbackAuth_;
}
void CreateEventSubscribeRequest::setNeedCallbackAuth(bool needCallbackAuth) {
needCallbackAuth_ = needCallbackAuth;
setParameter(std::string("NeedCallbackAuth"), needCallbackAuth ? "true" : "false");
}
std::vector<std::string> CreateEventSubscribeRequest::getEvents() const { std::vector<std::string> CreateEventSubscribeRequest::getEvents() const {
return events_; return events_;
} }

View File

@@ -255,6 +255,19 @@ void StartMPUTaskRequest::setSubSpecCameraUsers(const std::vector<std::string> &
subSpecCameraUsers_ = subSpecCameraUsers; subSpecCameraUsers_ = subSpecCameraUsers;
} }
std::vector<StartMPUTaskRequest::OutputStreamParams> StartMPUTaskRequest::getOutputStreamParams() const {
return outputStreamParams_;
}
void StartMPUTaskRequest::setOutputStreamParams(const std::vector<StartMPUTaskRequest::OutputStreamParams> &outputStreamParams) {
outputStreamParams_ = outputStreamParams;
for(int dep1 = 0; dep1 != outputStreamParams.size(); dep1++) {
auto outputStreamParamsObj = outputStreamParams.at(dep1);
std::string outputStreamParamsObjStr = std::string("OutputStreamParams") + "." + std::to_string(dep1 + 1);
setParameter(outputStreamParamsObjStr + ".StreamURL", outputStreamParamsObj.streamURL);
}
}
std::string StartMPUTaskRequest::getTaskProfile() const { std::string StartMPUTaskRequest::getTaskProfile() const {
return taskProfile_; return taskProfile_;
} }