#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 文件名:GetMenuResultFull.cs 文件功能描述:获取菜单时候的完整结构,用于接收微信服务器返回的Json信息 创建标识:Senparc - 20150211 修改标识:Senparc - 20150303 修改描述:整理接口 ----------------------------------------------------------------*/ using System.Collections.Generic; using Senparc.Weixin.Entities; using Senparc.Weixin.MP.AdvancedAPIs.AutoReply; using Senparc.Weixin.MP.Entities.Menu; namespace Senparc.Weixin.MP { #region GetMenuResultFull 相关 /// /// 获取菜单时候的完整结构,用于接收微信服务器返回的Json信息 /// 注:menu为默认菜单,conditionalmenu为个性化菜单列表。字段说明请见个性化菜单接口页的说明。 /// public class GetMenuResultFull : WxJsonResult { public MenuFull_ButtonGroup menu { get; set; } /// /// 有个性化菜单时显示。最新的在最前。 /// public List conditionalmenu { get; set; } } public class MenuFull_ButtonGroup { public List button { get; set; } } public class MenuFull_RootButton { public string type { get; set; } public string key { get; set; } public string name { get; set; } public string url { get; set; } public NewsInfo news_info { get; set; } #region 小程序 public string appid { get; set; } public string pagepath { get; set; } #endregion public string media_id { get; set; } public List sub_button { get; set; } } #endregion #region Conditional(个性化菜单)相关 public class MenuTryMatchResult : WxJsonResult { public List button { get; set; } } /// /// 自定义菜单配置 /// public class SelfMenuConfigResult : WxJsonResult { /// /// 菜单是否开启,0代表未开启,1代表开启 /// public bool is_menu_open { get; set; } /// /// 菜单信息 /// public MenuFull_ButtonGroup selfmenu_info { get; set; } } /// /// 接收菜单信息时用的“最大可能性”类型 /// public class MenuFull_ConditionalButtonGroup: MenuFull_ButtonGroup { public MenuMatchRule matchrule { get; set; } /// /// 菜单Id,只在获取的时候自动填充,提交“菜单创建”请求时不需要设置 /// public long menuid { get; set; } } #endregion }