Ejemplo n.º 1
0
        public async Task <Opportunity> DrawOpportunity()
        {
            _cachedOpportunity = await _session.DrawOpportunity();

            return(_cachedOpportunity);
        }
Ejemplo n.º 2
0
        public async Task <Opportunity> DiscardOpportunityCard(long id)
        {
            _cachedOpportunity = await _session.DiscardOpportunity(id);

            return(_cachedOpportunity);
        }
Ejemplo n.º 3
0
 public static IEnumerable <CardAction> GetOptions(this Opportunity opp, IEnumerable <CardAction> cardActions)
 {
     return(opp.displayCards
            .Select(c => cardActions.GetCardFromUseListByName(c.name, c.eventId))
            .Where(c => c != null));
 }