public void Atualizar(string nome, GeneroEnum genero, SituacaoJogo situacao) { Nome = nome; Genero = genero; Situacao = situacao; Validar(); }
public async Task <TabelaCashback_ItemEntity> ObterTabelaVigentePorGenero(GeneroEnum genero) { var tabelaVigente = await ObterTabelaVigente(); var tabela = tabelaVigente.Itens.Find(a => a.Genero == (byte)genero); return(tabela); }
public static Cashback BuildInitial(GeneroEnum genero) { return(new Cashback() { CashbackId = 0, GeneroId = genero }); }
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(); } }
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)); }
public ObterVigentePorGeneroQuery(GeneroEnum genero) { this.Genero = genero; }
public ObterPercentualCashbackDiaQuery(GeneroEnum genero) { this.Genero = genero; }