Пример #1
0
        public WeixinResult Add()
        {
            string url = WeUtil.GetUrl(WeCardConst.ADD_POI);
            WePoi  poi = new WePoi(this);

            return(WeUtil.PostDataToUri(url, poi.WriteJson(), new WeixinResult()));
        }
Пример #2
0
        /// <summary>
        /// 门店的服务信息只能修改传入参数的七个字段信息。
        /// 若字段填写内容,则为覆盖更新,若无内容则视为不修改,维持原有内容
        /// </summary>
        /// 通过方法的传入参数来控制可更新字段。
        public static WeixinResult Update(string poiId, string telephone, List<WePhotoUrl> phList,
            string special, string recommend, string introduction, TimeSpan? beg, TimeSpan? end, int? avgPrice)
        {
            TkDebug.AssertArgumentNullOrEmpty(poiId, "poiId", null);

            string url = WeUtil.GetUrl(WeCardConst.UPDATE_POI);
            WePoiBaseInfo updateInfo = new WePoiBaseInfo(poiId, telephone, phList, recommend, special,
                introduction, beg, end, avgPrice);
            WePoi poi = new WePoi(updateInfo);
            return WeUtil.PostDataToUri(url, poi.WriteJson(), new WeixinResult());
        }
Пример #3
0
        /// <summary>
        /// 门店的服务信息只能修改传入参数的七个字段信息。
        /// 若字段填写内容,则为覆盖更新,若无内容则视为不修改,维持原有内容
        /// </summary>
        /// 通过方法的传入参数来控制可更新字段。
        public static WeixinResult Update(string poiId, string telephone, List <WePhotoUrl> phList,
                                          string special, string recommend, string introduction, TimeSpan?beg, TimeSpan?end, int?avgPrice)
        {
            TkDebug.AssertArgumentNullOrEmpty(poiId, "poiId", null);

            string        url        = WeUtil.GetUrl(WeCardConst.UPDATE_POI);
            WePoiBaseInfo updateInfo = new WePoiBaseInfo(poiId, telephone, phList, recommend, special,
                                                         introduction, beg, end, avgPrice);
            WePoi poi = new WePoi(updateInfo);

            return(WeUtil.PostDataToUri(url, poi.WriteJson(), new WeixinResult()));
        }
Пример #4
0
 public WeixinResult Add()
 {
     string url = WeUtil.GetUrl(WeCardConst.ADD_POI);
     WePoi poi = new WePoi(this);
     return WeUtil.PostDataToUri(url, poi.WriteJson(), new WeixinResult());
 }