Example #1
0
        /// <summary>
        /// 创建个性化菜单
        /// </summary>
        /// <param name="rule"></param>
        /// <param name="buttons"></param>
        /// <returns></returns>
        public CreateConditionalMenuResult CreateConditionalMenu(Matchrule rule, params Button[] buttons)
        {
            var data = new
            {
                button    = buttons,
                matchrule = rule
            };

            return(PostJson <CreateConditionalMenuResult>("/cgi-bin/menu/addconditional", data));
        }
Example #2
0
 public ConditionalRootMenu()
 {
     matchrule = new Matchrule();
 }