示例#1
0
 protected UrlLikeMessageEntityHandler(TelemetryClient telemetryClient, IHttpClientFactory httpClientFactory, Func <MessageEntityEx, StringSegment> getUrl, ZonedClock clock, DateTimeZone timeZoneInfo, PokemonInfo pokemons, GymHelper gymHelper, IOptions <BotConfiguration> botConfiguration)
 {
     myGetUrl            = getUrl;
     myClock             = clock;
     myTimeZoneInfo      = timeZoneInfo;
     myPokemons          = pokemons;
     myGymHelper         = gymHelper;
     myTelemetryClient   = telemetryClient;
     myHttpClientFactory = httpClientFactory;
     myBotConfiguration  = botConfiguration.Value;
 }
示例#2
0
 public UrlMessageEntityHandler(TelemetryClient telemetryClient, IHttpClientFactory httpClientFactory, Message message, ZonedClock clock, DateTimeZone timeZoneInfo, ITelegramBotClient bot, PokemonInfo pokemons, GymHelper gymHelper, IOptions <BotConfiguration> botConfiguration)
     : base(telemetryClient, httpClientFactory, entity => entity.Value, clock, timeZoneInfo, pokemons, gymHelper, botConfiguration)
 {
 }
示例#3
0
 public VenueMessageHandler(PokemonInfo pokemonInfo, GymHelper gymHelper, DateTimeZone dateTimeZone)
 {
     myPokemonInfo  = pokemonInfo;
     myGymHelper    = gymHelper;
     myDateTimeZone = dateTimeZone;
 }