#region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
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.
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
----------------------------------------------------------------*/
#endregion Apache License Version 2.0
/*----------------------------------------------------------------
Copyright (C) 2019 Senparc
文件名:AutoReplyResultJson.cs
文件功能描述:获取自动回复规则返回结果
创建标识:Senparc - 20150907
修改标识:Senparc - 20170322
修改描述:v14.3.136 增加 KeywordAutoReplyInfo_Item.reply_list_info 属性
----------------------------------------------------------------*/
using System.Collections.Generic;
//using System.Security.AccessControl;
using Senparc.Weixin.Entities;
namespace Senparc.Weixin.MP.AdvancedAPIs.AutoReply
{
public class GetCurrentAutoreplyInfoResult : WxJsonResult
{
///
/// 关注后自动回复是否开启,0代表未开启,1代表开启
///
public int is_add_friend_reply_open { get; set; }
///
/// 消息自动回复是否开启,0代表未开启,1代表开启
///
public int is_autoreply_open { get; set; }
///
/// 关注后自动回复的信息
///
public AddFriendAutoReplyInfo add_friend_autoreply_info { get; set; }
///
/// 消息自动回复的信息
///
public MessageDefaultAutoReplyInfo message_default_autoreply_info { get; set; }
///
/// 关键词自动回复的信息
///
public KeywordAutoReplyInfo keyword_autoreply_info { get; set; }
}
public class AddFriendAutoReplyInfo
{
///
/// 自动回复的类型。关注后自动回复和消息自动回复的类型仅支持文本(text)、图片(img)、语音(voice)、视频(video),关键词自动回复则还多了图文消息(news)
///
public AutoReplyType type { get; set; }
///
/// 对于文本类型,content是文本内容,对于图文、图片、语音、视频类型,content是mediaID
///
public string content { get; set; }
}
public class MessageDefaultAutoReplyInfo
{
///
/// 自动回复的类型。关注后自动回复和消息自动回复的类型仅支持文本(text)、图片(img)、语音(voice)、视频(video),关键词自动回复则还多了图文消息(news)
///
public AutoReplyType type { get; set; }
///
/// 对于文本类型,content是文本内容,对于图文、图片、语音、视频类型,content是mediaID
///
public string content { get; set; }
}
public class KeywordAutoReplyInfo
{
///
/// 关键词自动回复的信息列表
///
public List list { get; set; }
}
public class KeywordAutoReplyInfo_Item
{
///
/// 规则名称
///
public string rule_name { get; set; }
///
/// 创建时间
///
public long create_time { get; set; }
///
/// 回复模式,reply_all代表全部回复,random_one代表随机回复其中一条
///
public AutoReplyMode reply_mode { get; set; }
///
/// 匹配的关键词列表
///
public List keyword_list_info { get; set; }
///
/// 回复内容
///
public List reply_list_info { get; set; }
}
public class KeywordListInfoItem
{
///
/// 自动回复的类型。关注后自动回复和消息自动回复的类型仅支持文本(text)、图片(img)、语音(voice)、视频(video),关键词自动回复则还多了图文消息(news)
///
public AutoReplyType type { get; set; }
///
/// 回复模式,reply_all代表全部回复,random_one代表随机回复其中一条
///
public AutoReplyMatchMode match_mode { get; set; }
///
/// 对于文本类型,content是文本内容,对于图文、图片、语音、视频类型,content是mediaID
///
public string content { get; set; }
}
public class ReplyListInfoItem
{
///
/// 自动回复的类型。关注后自动回复和消息自动回复的类型仅支持文本(text)、图片(img)、语音(voice)、视频(video),关键词自动回复则还多了图文消息(news)
///
public AutoReplyType type { get; set; }
///
/// 图文消息的信息
///
public NewsInfo news_info { get; set; }
///
/// 对于文本类型,content是文本内容,对于图文、图片、语音、视频类型,content是mediaID
///
public string content { get; set; }
}
public class NewsInfo
{
///
/// 图文消息的信息列表
///
public List list { get; set; }
}
public class NewsInfoItem
{
///
/// 图文消息的标题
///
public string title { get; set; }
///
/// 作者
///
public string author { get; set; }
///
/// 摘要
///
public string digest { get; set; }
///
/// 是否显示封面,0为不显示,1为显示
///
public int show_cover { get; set; }
///
/// 封面图片的URL
///
public string cover_url { get; set; }
///
/// 正文的URL
///
public string content_url { get; set; }
///
/// 原文的URL,若置空则无查看原文入口
///
public string source_url { get; set; }
}
}