public bool HasRequiredTransactionPurchase(Transaction transaction, RequiredPurchase requiredPurchase) { lock (this) { if (_accountFeatures.TryGetValue(requiredPurchase.RequiredPurchaseGroupId, out var accoutFeature)) { return(accoutFeature.HasRequiredTransactionPurchase(transaction, requiredPurchase)); } if (_accountSubscriptions.TryGetValue(requiredPurchase.RequiredPurchaseGroupId, out var subscriptionFeature)) { return(subscriptionFeature.HasRequiredTransactionPurchase(transaction, requiredPurchase)); } return(false); } }
public virtual void Consume(RequiredPurchase requiredPurchase) { CheckPurchaseType(requiredPurchase.RequiredPurchaseType, requiredPurchase.RequiredPurchaseGroupId); }
public virtual bool HasRequiredTransactionPurchase(Transaction transaction, RequiredPurchase requiredPurchase) { CheckPurchaseType(requiredPurchase.RequiredPurchaseType, requiredPurchase.RequiredPurchaseGroupId); return(false); }
public override bool HasRequiredTransactionPurchase(Transaction transaction, RequiredPurchase requiredPurchase) { base.HasRequiredTransactionPurchase(transaction, requiredPurchase); return(SubscriptionEnd > transaction.Timestamp); }
public override bool HasRequiredTransactionPurchase(Transaction transaction, RequiredPurchase requiredPurchase) { base.HasRequiredTransactionPurchase(transaction, requiredPurchase); return(true); }