コード例 #1
0
 public void Atualizar(string nome, GeneroEnum genero, SituacaoJogo situacao)
 {
     Nome     = nome;
     Genero   = genero;
     Situacao = situacao;
     Validar();
 }
コード例 #2
0
        public async Task <TabelaCashback_ItemEntity> ObterTabelaVigentePorGenero(GeneroEnum genero)
        {
            var tabelaVigente = await ObterTabelaVigente();

            var tabela = tabelaVigente.Itens.Find(a => a.Genero == (byte)genero);

            return(tabela);
        }
コード例 #3
0
 public static Cashback BuildInitial(GeneroEnum genero)
 {
     return(new Cashback()
     {
         CashbackId = 0,
         GeneroId = genero
     });
 }
コード例 #4
0
        public static IPorcetagemCashback CriaInstanciaPorcentagemCashback(GeneroEnum genero)
        {
            switch (genero)
            {
            case GeneroEnum.CLASSIC:
                return(new PorcentagemCashbackClassic());

            case GeneroEnum.MPB:
                return(new PorcentagemCashbackMpb());

            case GeneroEnum.POP:
                return(new PorcentagemCashbackPop());

            case GeneroEnum.ROCK:
                return(new PorcentagemCashbackRock());

            default:
                throw new ArgumentException();
            }
        }
コード例 #5
0
        public async Task <OkObjectResult> GetDailyHoroscope(string nombre, int edad, GeneroEnum genero, HoroscopesEnum sign, TimeFrameEnum timeFrame)
        {
            var result = await _horoscopeGateway.GetHoroscope(timeFrame.ToString(), sign.ToString());

            var userConference = new UserConference
            {
                Edad      = edad,
                Fecha     = DateTime.UtcNow,
                Genero    = genero.ToString(),
                Horoscopo = sign.ToString(),
                Nombre    = nombre
            };

            await _queueService.Publish <UserConference>(userConference, QueueEnum.queuerepository.ToString());

            await _queueService.Publish <ResultHoroscope>(result, QueueEnum.queuestorage.ToString());

            return(Ok(result));
        }
コード例 #6
0
 public ObterVigentePorGeneroQuery(GeneroEnum genero)
 {
     this.Genero = genero;
 }
コード例 #7
0
 public ObterPercentualCashbackDiaQuery(GeneroEnum genero)
 {
     this.Genero = genero;
 }