ChatApp second version.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2020-09-02 Version: 1.36.630
|
||||
- ChatApp second version.
|
||||
- Support new message fomat.
|
||||
|
||||
2020-09-02 Version: 1.36.629
|
||||
- Supported AndroidNotificationHuaweiChannel for Push and MassPush.
|
||||
|
||||
|
||||
@@ -39,8 +39,14 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getTemplateBodyParams()const;
|
||||
void setTemplateBodyParams(const std::string& templateBodyParams);
|
||||
std::string getLink()const;
|
||||
void setLink(const std::string& link);
|
||||
std::string getCaption()const;
|
||||
void setCaption(const std::string& caption);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getBody()const;
|
||||
void setBody(const std::string& body);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getChannelType()const;
|
||||
@@ -55,11 +61,16 @@ namespace AlibabaCloud
|
||||
void setTo(const std::string& to);
|
||||
std::string getTemplateCode()const;
|
||||
void setTemplateCode(const std::string& templateCode);
|
||||
std::string getMediaType()const;
|
||||
void setMediaType(const std::string& mediaType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string templateBodyParams_;
|
||||
std::string link_;
|
||||
std::string caption_;
|
||||
std::string type_;
|
||||
std::string body_;
|
||||
std::string accessKeyId_;
|
||||
std::string channelType_;
|
||||
std::string from_;
|
||||
@@ -67,6 +78,7 @@ namespace AlibabaCloud
|
||||
long ownerId_;
|
||||
std::string to_;
|
||||
std::string templateCode_;
|
||||
std::string mediaType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -46,7 +46,29 @@ std::string SendMessageRequest::getTemplateBodyParams()const
|
||||
void SendMessageRequest::setTemplateBodyParams(const std::string& templateBodyParams)
|
||||
{
|
||||
templateBodyParams_ = templateBodyParams;
|
||||
setParameter("TemplateBodyParams", templateBodyParams);
|
||||
setBodyParameter("TemplateBodyParams", templateBodyParams);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getLink()const
|
||||
{
|
||||
return link_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setLink(const std::string& link)
|
||||
{
|
||||
link_ = link;
|
||||
setBodyParameter("Link", link);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getCaption()const
|
||||
{
|
||||
return caption_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setCaption(const std::string& caption)
|
||||
{
|
||||
caption_ = caption;
|
||||
setBodyParameter("Caption", caption);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getType()const
|
||||
@@ -57,7 +79,18 @@ std::string SendMessageRequest::getType()const
|
||||
void SendMessageRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setBodyParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getAccessKeyId()const
|
||||
@@ -79,7 +112,7 @@ std::string SendMessageRequest::getChannelType()const
|
||||
void SendMessageRequest::setChannelType(const std::string& channelType)
|
||||
{
|
||||
channelType_ = channelType;
|
||||
setParameter("ChannelType", channelType);
|
||||
setBodyParameter("ChannelType", channelType);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getFrom()const
|
||||
@@ -90,7 +123,7 @@ std::string SendMessageRequest::getFrom()const
|
||||
void SendMessageRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setParameter("From", from);
|
||||
setBodyParameter("From", from);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getResourceOwnerAccount()const
|
||||
@@ -123,7 +156,7 @@ std::string SendMessageRequest::getTo()const
|
||||
void SendMessageRequest::setTo(const std::string& to)
|
||||
{
|
||||
to_ = to;
|
||||
setParameter("To", to);
|
||||
setBodyParameter("To", to);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getTemplateCode()const
|
||||
@@ -134,6 +167,17 @@ std::string SendMessageRequest::getTemplateCode()const
|
||||
void SendMessageRequest::setTemplateCode(const std::string& templateCode)
|
||||
{
|
||||
templateCode_ = templateCode;
|
||||
setParameter("TemplateCode", templateCode);
|
||||
setBodyParameter("TemplateCode", templateCode);
|
||||
}
|
||||
|
||||
std::string SendMessageRequest::getMediaType()const
|
||||
{
|
||||
return mediaType_;
|
||||
}
|
||||
|
||||
void SendMessageRequest::setMediaType(const std::string& mediaType)
|
||||
{
|
||||
mediaType_ = mediaType;
|
||||
setBodyParameter("MediaType", mediaType);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user