/* * 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_CHATBOT_MODEL_QUERYINTENTSRESULT_H_ #define ALIBABACLOUD_CHATBOT_MODEL_QUERYINTENTSRESULT_H_ #include #include #include #include #include namespace AlibabaCloud { namespace Chatbot { namespace Model { class ALIBABACLOUD_CHATBOT_EXPORT QueryIntentsResult : public ServiceResult { public: struct Intent { struct UserSayItem { struct DataItem { std::string slotId; std::string text; }; bool strict; std::string userSayId; std::vector data; }; struct RuleCheckItem { std::vector warning; bool strict; std::vector error; std::string text; }; struct SlotItem { struct TagsItem { std::string userSayId; std::string value; }; std::string slotId; bool isArray; bool isNecessary; std::string value; int lifeSpan; std::vector question; std::vector tags; std::string name; }; std::string modifyTime; std::vector userSay; std::string modifyUserId; std::string createTime; std::string modifyUserName; std::vector slot; std::string createUserId; std::vector ruleCheck; std::string createUserName; long intentId; std::string name; }; QueryIntentsResult(); explicit QueryIntentsResult(const std::string &payload); ~QueryIntentsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getIntents()const; protected: void parse(const std::string &payload); private: int totalCount_; int pageSize_; int pageNumber_; std::vector intents_; }; } } } #endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYINTENTSRESULT_H_