本文整理汇总了C#中AccountType类的典型用法代码示例。如果您正苦于以下问题:C# AccountType类的具体用法?C# AccountType怎么用?C# AccountType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AccountType类属于命名空间,在下文中一共展示了AccountType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Account
public Account(int accountNumber, string name, AccountType accountAccountType)
{
AccountNumber = accountNumber;
Name = name;
Type = accountAccountType;
_transactions = new List<ITransaction>();
}
开发者ID:robertreppel,项目名称:gherk-book,代码行数:7,代码来源:Account.cs
示例2: SignedInUser
public SignedInUser(AccountType accountType, int userId, string userName, bool isAuthenticated)
{
AccountType = accountType;
AccountId = userId;
UserName = userName;
IsAuthenticated = isAuthenticated;
}
开发者ID:ammeep,项目名称:giftme,代码行数:7,代码来源:ICurrentUser.cs
示例3: TinyPicUploader
public TinyPicUploader(string id, string key, AccountType accountType = AccountType.Anonymous, string shuk = null)
{
TinyPicID = id;
TinyPicKey = key;
AccountType = accountType;
Shuk = shuk;
}
开发者ID:Maximus325,项目名称:ShareX,代码行数:7,代码来源:TinyPicUploader.cs
示例4: CreditAccount
public void CreditAccount(AccountType accountType, Money amount)
{
GuardPortfolioState();
var account = Get<Account>(new AccountId(accountType));
account.Credit(amount);
}
开发者ID:AdrianFreemantle,项目名称:clientele-training,代码行数:7,代码来源:Portfolio.cs
示例5: Account
public Account( int num, AccountType type )
{
Number = num;
Amount = 0;
Type = type;
History = new List<HistoryEntry>();
}
开发者ID:yuriy0,项目名称:BankMachine,代码行数:7,代码来源:Account.cs
示例6: Account
public Account(string email, string name, AccountType role)
{
id = -1;
this.Email = email;
this.Name = name;
this.Role = role;
}
开发者ID:Sanko-Kallig,项目名称:Automatisch-Boodschappen-Beheer,代码行数:7,代码来源:Account.cs
示例7: SteamAccount
public SteamAccount(string username, string password)
{
this.name = username;
this.username = username;
this.password = password;
this.type = AccountType.Main;
}
开发者ID:Trontor,项目名称:SteamAccountSwitcher,代码行数:7,代码来源:SteamAccount.cs
示例8: AdalAccountSession
internal AdalAccountSession(
IDictionary<string, string> authenticationResponseValues,
string clientId = null,
AccountType accountType = AccountType.None)
: base(authenticationResponseValues, clientId, accountType)
{
}
开发者ID:ChocolateMonkey,项目名称:onedrive-sdk-csharp,代码行数:7,代码来源:AdalAccountSession.cs
示例9: Account
public Account(AccountType type, Customer accountCustumer, decimal balance, decimal interestRate)
{
this.Type = type;
this.AccountCustomer = accountCustumer;
this.Balance = balance;
this.InterestRate = interestRate;
}
开发者ID:p0150n,项目名称:TelerikAcademy,代码行数:7,代码来源:Account.cs
示例10: AccountAlreadyOpened
public AccountAlreadyOpened(AccountType type, Int64 number, Decimal balance, AccountStatus status)
{
AccountType = type;
AccountNumber = number;
Balance = balance;
Status = status;
}
开发者ID:SparkSoftware,项目名称:infrastructure,代码行数:7,代码来源:AccountEvents.cs
示例11: Account
internal Account(AccountTypeEnum accountType, Money initialDeposit)
{
this.accountType = accountType;
ledger = new Ledger(accountType);
this.accountType.ValidateBalance(initialDeposit);
ledger.DepositMoney(initialDeposit);
}
开发者ID:AdrianFreemantle,项目名称:clientele-training,代码行数:7,代码来源:Account.cs
示例12: CanFindAccount
public static bool CanFindAccount(this Cmdlet command, AccountIdentity account, AccountType accountType)
{
if (account == null)
{
return false;
}
var name = account.Name;
var error = $"Cannot find an account with identity '{name}'.";
if (accountType == AccountType.Role && !Role.Exists(name))
{
command.WriteError(new ErrorRecord(new ObjectNotFoundException(error), ErrorIds.AccountNotFound.ToString(),
ErrorCategory.ObjectNotFound, account));
return false;
}
if (accountType == AccountType.User && !User.Exists(name))
{
command.WriteError(new ErrorRecord(new ObjectNotFoundException(error), ErrorIds.AccountNotFound.ToString(),
ErrorCategory.ObjectNotFound, account));
return false;
}
return true;
}
开发者ID:sobek85,项目名称:Console,代码行数:25,代码来源:CmdletExtensions.cs
示例13: CreateAccount
/// <summary>
/// Factory method to assemble and return an account based on passed account type.
/// </summary>
/// <param name="accountType">Type of the account.</param>
/// <returns>
/// new account
/// </returns>
/// <exception cref="System.ArgumentException"></exception>
public Account CreateAccount(AccountType accountType)
{
Func<IDateProvider, Account> f;
if (!accMap.TryGetValue(accountType, out f))
throw new ArgumentException(string.Format("Cannot instantiate account of type {0}", accountType));
return f(dateProvider);
}
开发者ID:ashalabad,项目名称:abc-bank-c-sharp,代码行数:15,代码来源:AccountFactory.cs
示例14: SetAccountType
public void SetAccountType(AccountType type)
{
if ((Application.platform != RuntimePlatform.OSXEditor) && (Application.platform != RuntimePlatform.WindowsEditor))
{
_tdgaSetAccountType((int) type);
}
}
开发者ID:Lessica,项目名称:Something-of-SHIPWAR-GAMES,代码行数:7,代码来源:TDGAAccount.cs
示例15: Account
/// <summary>
/// Initializes a new instance of the <see cref="Account"/> class.
/// </summary>
/// <param name="accountType">Type of the account.</param>
/// <param name="interestCalculator">The interest calculator.</param>
/// <param name="dateProvider">The date provider.</param>
public Account(AccountType accountType,IInterestCalculator interestCalculator,IDateProvider dateProvider)
{
AccountType = accountType;
transactionsList = new List<Transaction>();
this.interestCalculator = interestCalculator;
this.dateProvider = dateProvider;
}
开发者ID:ashalabad,项目名称:abc-bank-c-sharp,代码行数:13,代码来源:Account.cs
示例16: Account
protected Account(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, int id, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, AccountType type, string url)
{
AvatarUrl = avatarUrl;
Bio = bio;
Blog = blog;
Collaborators = collaborators;
Company = company;
CreatedAt = createdAt;
DiskUsage = diskUsage;
Email = email;
Followers = followers;
Following = following;
Hireable = hireable;
HtmlUrl = htmlUrl;
TotalPrivateRepos = totalPrivateRepos;
Id = id;
Location = location;
Login = login;
Name = name;
OwnedPrivateRepos = ownedPrivateRepos;
Plan = plan;
PrivateGists = privateGists;
PublicGists = publicGists;
PublicRepos = publicRepos;
Type = type;
Url = url;
}
开发者ID:alexgyori,项目名称:octokit.net,代码行数:27,代码来源:Account.cs
示例17: Account
/// <summary>
/// Internal constructor.
/// </summary>
protected Account(AccountType accountType, BalanceType defaultBalanceType)
: base()
{
this.AccountID = Guid.NewGuid();
this.AccountType = accountType;
this.DefaultBalanceType = defaultBalanceType;
}
开发者ID:PaulStovell,项目名称:trial-balance,代码行数:10,代码来源:Account.cs
示例18: CreateAccount
private static Account CreateAccount(string name, AccountType accountType)
{
var account = new Account(name, accountType);
account.Id = Regex.Replace(account.Name.ToLower(), "[^a-z0-9-/]", "");
return account;
}
开发者ID:andy-uq,项目名称:HomeTrack,代码行数:7,代码来源:TestData.cs
示例19: WindowsAccount
public WindowsAccount(string name, bool? enabled, string accountSID, AccountType type)
{
this.Name = name;
this.Enabled = enabled;// ?? true;
this.AccountSID = accountSID;
this.AccountType = type;
}
开发者ID:ywcsz,项目名称:modSIC,代码行数:7,代码来源:WindowsUsersProvider.cs
示例20: RateEndpoints
/// <summary>
/// Initializes a new instance of the <see cref="RateEndpoints"/> class.
/// </summary>
/// <param name="key">The key.</param>
/// <param name="accountType">Type of the account.</param>
/// <param name="accountId">The account identifier.</param>
public RateEndpoints(string key, AccountType accountType, int accountId)
: base(key, accountType)
{
_accountId = accountId;
_key = key;
_accountType = accountType;
}
开发者ID:mbont,项目名称:oanda-rest-cs,代码行数:13,代码来源:RateEndpoints.cs
注:本文中的AccountType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论