public BaseResponse ChangePassword(string customerCode, PasswordUseScope useScope, string oldPassword, string newPassword) { List <SZKingdomArgument> arguments = new List <SZKingdomArgument>(); arguments.Add(SZKingdomArgument.UserCode(customerCode)); arguments.Add(SZKingdomArgument.PasswordUseScpose(useScope)); arguments.Add(SZKingdomArgument.OldAuthenticationData(_marketDataLibrary.EncryptPassword(customerCode, oldPassword))); arguments.Add(SZKingdomArgument.NewAuthenticationData(_marketDataLibrary.EncryptPassword(customerCode, newPassword))); arguments.Add(SZKingdomArgument.EncryptionKey(customerCode)); arguments.Add(SZKingdomArgument.EncryptionType(EncryptionType.WinEncryption)); arguments.Add(SZKingdomArgument.AuthenticationType(AuthenticationType.Password)); EntityResponse <DataTable> result = _marketDataLibrary.ExecuteCommand(SZKingdomRequest.ChangePassword, arguments); if (result.IsSuccess) { return(BaseResponse.Success()); } return(BaseResponse.Error(result.ErrorCode, result.FormattedMessage)); }