Esempio n. 1
0
        public static _back TuanGou_Term(Code_Type codetype, string title, string sub_title,
                                         string notice, string description, int quantity, string date_info, int fixed_term, int fixed_begin_term, string deal_detail)
        {
            WeiXinCard.base_info info = iniBase_Info(codetype, def_logo_url, def_brand_name, title, sub_title, def_color, notice, description, quantity, date_info, Type.DATE_TYPE_FIX_TERM,
                                                     0, 0, fixed_term, fixed_begin_term);

            card_push_back json_back = TuanGou(info, deal_detail);

            return(GetBackCreate(json_back));
        }
Esempio n. 2
0
        public static card_push_back TuanGou(WeiXinCard.base_info info, string deal_detail)
        {
            groupon m = new groupon();

            m.base_info   = info;
            m.deal_detail = deal_detail;

            string back = "";

            card_push_back json_back = Push(ref back, JsonConvert.SerializeObject(m));

            return(json_back);
        }
Esempio n. 3
0
        public static _back TuanGou_Time_Range(Code_Type codetype, string title, string sub_title,
                                               string notice, string description, int quantity, string date_info, DateTime begin, DateTime end, string deal_detail)
        {
            int _begin = Misc.ConvertDateTimeInt(DateTime.Parse(begin.ToString("yyyy-MM-dd 00:00:00")));
            int _end   = Misc.ConvertDateTimeInt(DateTime.Parse(end.ToString("yyyy-MM-dd 23:59:59")));

            WeiXinCard.base_info info = iniBase_Info(codetype, def_logo_url, def_brand_name, title, sub_title, def_color, notice, description, quantity, date_info, Type.DATE_TYPE_FIX_TIME_RANGE,
                                                     (uint)_begin, (uint)_end, 0, 0);

            card_push_back json_back = TuanGou(info, deal_detail);

            return(GetBackCreate(json_back));
        }