Pub Support PayloadFormatIndicator and ContentType.

This commit is contained in:
sdk-team
2022-12-02 06:32:12 +00:00
parent e4d3a2d47e
commit 3a13a540f4
3 changed files with 29 additions and 1 deletions

View File

@@ -120,6 +120,17 @@ void PubRequest::setTopicFullName(const std::string& topicFullName)
setParameter("TopicFullName", topicFullName);
}
int PubRequest::getPayloadFormatIndicator()const
{
return payloadFormatIndicator_;
}
void PubRequest::setPayloadFormatIndicator(int payloadFormatIndicator)
{
payloadFormatIndicator_ = payloadFormatIndicator;
setParameter("PayloadFormatIndicator", std::to_string(payloadFormatIndicator));
}
std::string PubRequest::getProductKey()const
{
return productKey_;
@@ -131,6 +142,17 @@ void PubRequest::setProductKey(const std::string& productKey)
setParameter("ProductKey", productKey);
}
std::string PubRequest::getContentType()const
{
return contentType_;
}
void PubRequest::setContentType(const std::string& contentType)
{
contentType_ = contentType;
setParameter("ContentType", contentType);
}
std::string PubRequest::getApiProduct()const
{
return apiProduct_;