Ejemplo n.º 1
0
        public WeixinResult ModifyPasswd(string password)
        {
            TkDebug.AssertArgumentNullOrEmpty(password, "password", null);

            InternalAccount account = new InternalAccount(this, WeUtil.Md5(password));
            return account.Update();
        }
Ejemplo n.º 2
0
        public WeixinResult ModifyPasswd(string password)
        {
            TkDebug.AssertArgumentNullOrEmpty(password, "password", null);

            InternalAccount account = new InternalAccount(this, WeUtil.Md5(password));

            return(account.Update());
        }
        public OutputData Update(IInputData input, object instance)
        {
            BasePasswordData passwd = instance.Convert<BasePasswordData>();

            InternalAccount account = new InternalAccount(passwd.UserId, passwd.Password);
            account.Update();

            return OutputData.CreateToolkitObject(KeyData.Empty);
        }
Ejemplo n.º 4
0
        public static WeixinResult Add(string account, string nickName, string password)
        {
            TkDebug.AssertArgumentNullOrEmpty(account, "account", null);
            TkDebug.AssertArgumentNullOrEmpty(nickName, "nickName", null);

            InternalAccount saccount = new InternalAccount
            {
                Account = account,
                NickName = nickName,
                Password = (password == null ? null : WeUtil.Md5(password))
            };
            return saccount.Add();
        }
Ejemplo n.º 5
0
        public static WeixinResult Add(string account, string nickName, string password)
        {
            TkDebug.AssertArgumentNullOrEmpty(account, "account", null);
            TkDebug.AssertArgumentNullOrEmpty(nickName, "nickName", null);

            InternalAccount saccount = new InternalAccount
            {
                Account  = account,
                NickName = nickName,
                Password = (password == null ? null : WeUtil.Md5(password))
            };

            return(saccount.Add());
        }
Ejemplo n.º 6
0
        public WeixinResult Update()
        {
            InternalAccount account = new InternalAccount(this, null);

            return(account.Update());
        }
Ejemplo n.º 7
0
 public WeixinResult Update()
 {
     InternalAccount account = new InternalAccount(this, null);
     return account.Update();
 }