Exemple #1
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());
        }
Exemple #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()));
        }
Exemple #3
0
 public WePoi(WePoiBaseInfo baseInfo)
 {
     BaseInfo = baseInfo;
 }
Exemple #4
0
 public WePoi(WePoiBaseInfo baseInfo)
 {
     BaseInfo = baseInfo;
 }
Exemple #5
0
 public static WeixinResult Add(WePoiBaseInfo baseInfo)
 {
     string url = WeUtil.GetUrl(WeCardConst.ADD_POI);
     WePoi poi = new WePoi(baseInfo);
     return WeUtil.PostDataToUri(url, poi.WriteJson(), new WeixinResult());
 }