本文整理汇总了C#中PreparationType类的典型用法代码示例。如果您正苦于以下问题:C# PreparationType类的具体用法?C# PreparationType怎么用?C# PreparationType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PreparationType类属于命名空间,在下文中一共展示了PreparationType类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TransactionPreparation
public TransactionPreparation(Guid transactionId, TransactionType transactionType, PreparationType preparationType, decimal amount)
{
this.TransactionId = transactionId;
this.TransactionType = transactionType;
this.PreparationType = preparationType;
this.Amount = amount;
}
示例2: AddTransactionPreparationCommand
public AddTransactionPreparationCommand(string accountId, string transactionId, TransactionType transactionType, PreparationType preparationType, double amount)
: base(accountId)
{
TransactionId = transactionId;
TransactionType = transactionType;
PreparationType = preparationType;
Amount = amount;
}
示例3: TransactionPreparation
public TransactionPreparation(string accountId, string transactionId, TransactionType transactionType, PreparationType preparationType, double amount)
{
if (transactionType == TransactionType.DepositTransaction && preparationType != PreparationType.CreditPreparation)
{
throw new MismatchTransactionPreparationException(transactionType, preparationType);
}
if (transactionType == TransactionType.WithdrawTransaction && preparationType != PreparationType.DebitPreparation)
{
throw new MismatchTransactionPreparationException(transactionType, preparationType);
}
AccountId = accountId;
TransactionId = transactionId;
TransactionType = transactionType;
PreparationType = preparationType;
Amount = amount;
}
示例4: PrepareGameSyncs
public static AKRESULT PrepareGameSyncs(PreparationType in_PreparationType, AkGroupType in_eGameSyncType, uint in_GroupID, uint[] in_paGameSyncID, uint in_uNumGameSyncs, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) {
in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie);
{
AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareGameSyncs__SWIG_3((int)in_PreparationType, (int)in_eGameSyncType, in_GroupID, in_paGameSyncID, in_uNumGameSyncs, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode());
return ret;
}
}
示例5: PrepareEvent
public static AKRESULT PrepareEvent(PreparationType in_PreparationType, uint[] in_pEventID, uint in_uNumEvent, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie) {
in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie);
{
AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareEvent__SWIG_3((int)in_PreparationType, in_pEventID, in_uNumEvent, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode());
return ret;
}
}
示例6: PrepareBank
public static AKRESULT PrepareBank(PreparationType in_PreparationType, uint in_bankID, AkCallbackManager.BankCallback in_pfnBankCallback, object in_pCookie, AkBankContent in_uFlags) {
in_pCookie = new AkCallbackManager.BankCallbackPackage(in_pfnBankCallback, in_pCookie);
{
AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_PrepareBank__SWIG_10((int)in_PreparationType, in_bankID, (IntPtr)0, (IntPtr)in_pCookie.GetHashCode(), (int)in_uFlags);
return ret;
}
}
示例7: MismatchTransactionPreparationException
public MismatchTransactionPreparationException(TransactionType transactionType, PreparationType preparationType)
: base(string.Format("Mismatch transaction type [{0}] and preparation type [{1}].", transactionType, preparationType))
{
}