public WeixinResult ModifyPasswd(string password)
        {
            TkDebug.AssertArgumentNullOrEmpty(password, "password", null);

            InternalAccount account = new InternalAccount(this, WeUtil.Md5(password));
            return account.Update();
        }
Beispiel #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);
        }
        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();
        }
Beispiel #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());
        }
Beispiel #6
0
        public WeixinResult Update()
        {
            InternalAccount account = new InternalAccount(this, null);

            return(account.Update());
        }
 public WeixinResult Update()
 {
     InternalAccount account = new InternalAccount(this, null);
     return account.Update();
 }