コード例 #1
0
        public OutputData Insert(IInputData input, object instance)
        {
            InternalAccount account = instance as InternalAccount;

            TkDebug.AssertNotNull(account, "account", this);
            string password = account.GetNewPassword("InternalAccount");

            ServiceAccount.Add(account.Account + "@" +
                               WeixinSettings.Current.WeixinAccount, account.NickName, password);

            return(OutputData.CreateToolkitObject(new KeyData(account.Account, account.NickName)));
        }