Support AUTH for CreateEventSubscribe.
This commit is contained in:
@@ -32,6 +32,8 @@ public:
|
||||
~CreateEventSubscribeRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
bool getNeedCallbackAuth() const;
|
||||
void setNeedCallbackAuth(bool needCallbackAuth);
|
||||
std::vector<std::string> getEvents() const;
|
||||
void setEvents(const std::vector<std::string> &events);
|
||||
std::string getShowLog() const;
|
||||
@@ -49,6 +51,7 @@ public:
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
bool needCallbackAuth_;
|
||||
std::vector<std::string> events_;
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -80,6 +80,9 @@ public:
|
||||
bool enableUserPaneBackground;
|
||||
std::string backgroundPath;
|
||||
};
|
||||
struct OutputStreamParams {
|
||||
std::string streamURL;
|
||||
};
|
||||
struct Backgrounds {
|
||||
float width;
|
||||
float height;
|
||||
@@ -131,6 +134,8 @@ public:
|
||||
void setCropMode(int cropMode);
|
||||
std::vector<std::string> getSubSpecCameraUsers() const;
|
||||
void setSubSpecCameraUsers(const std::vector<std::string> &subSpecCameraUsers);
|
||||
std::vector<OutputStreamParams> getOutputStreamParams() const;
|
||||
void setOutputStreamParams(const std::vector<OutputStreamParams> &outputStreamParams);
|
||||
std::string getTaskProfile() const;
|
||||
void setTaskProfile(const std::string &taskProfile);
|
||||
std::vector<long> getLayoutIds() const;
|
||||
@@ -177,6 +182,7 @@ private:
|
||||
int rtpExtInfo_;
|
||||
int cropMode_;
|
||||
std::vector<std::string> subSpecCameraUsers_;
|
||||
std::vector<OutputStreamParams> outputStreamParams_;
|
||||
std::string taskProfile_;
|
||||
std::vector<long> layoutIds_;
|
||||
std::string streamURL_;
|
||||
|
||||
@@ -34,6 +34,15 @@ void CreateEventSubscribeRequest::setClientToken(const std::string &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 {
|
||||
return events_;
|
||||
}
|
||||
|
||||
@@ -255,6 +255,19 @@ void StartMPUTaskRequest::setSubSpecCameraUsers(const std::vector<std::string> &
|
||||
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 {
|
||||
return taskProfile_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user