Ejemplo n.º 1
0
        public WeixinResult Update()
        {
            string       url    = WeUtil.GetUrl(WeConst.UPDATE_GROUP);
            WeGroupData  data   = new WeGroupData(this);
            WeixinResult result = new WeixinResult();

            return(WeUtil.PostToUri(url, data.WriteJson(WeConst.WRITE_SETTINGS), result));
        }
Ejemplo n.º 2
0
        public static WeGroup CreateGroup(string name)
        {
            TkDebug.AssertArgumentNullOrEmpty(name, "name", null);

            WeGroupData group = new WeGroupData(name);
            string      url   = WeUtil.GetUrl(WeConst.CREATE_GROUP);

            group             = WeUtil.PostToUri(url, group.WriteJson(WeConst.WRITE_SETTINGS), group);
            group.Group.Count = 0;
            return(group.Group);
        }