public ReplyHandler(TelemetryClient telemetryClient, ITelegramBotClient bot, IDictionary <long, ITelegramBotClient> bots, RaidBattlesContext db) { myTelemetryClient = telemetryClient; myBot = bot; myBots = bots; myDB = db; }
public InviteCallbackQueryHandler(RaidBattlesContext context, RaidService raidService, IUrlHelper urlHelper, ITelegramBotClient bot) { myContext = context; myRaidService = raidService; myUrlHelper = urlHelper; myBot = bot; }
public TimeZoneNotifyHandler(TelemetryClient telemetryClient, ITelegramBotClient bot, RaidBattlesContext db, TimeZoneNotifyService timeZoneNotifyService) { myTelemetryClient = telemetryClient; myBot = bot; myDB = db; myTimeZoneNotifyService = timeZoneNotifyService; }
public CancelCallbackQueryHandler(RaidBattlesContext context, RaidService raidService, IUrlHelper urlHelper, ChatInfo chatInfo) { myContext = context; myRaidService = raidService; myUrlHelper = urlHelper; myChatInfo = chatInfo; }
public ChosenInlineResultHandler(RaidBattlesContext context, RaidService raidService, IUrlHelper urlHelper, PoGoToolsClient poGoToolsClient) { myContext = context; myRaidService = raidService; myUrlHelper = urlHelper; myPoGoToolsClient = poGoToolsClient; }
public PollModeCallbackQueryHandler(RaidService raidService, IUrlHelper urlHelper, RaidBattlesContext db, ITelegramBotClient bot) { myRaidService = raidService; myUrlHelper = urlHelper; myDb = db; myBot = bot; }
public TextMessageHandler(ITelegramBotClient bot, IEnumerable <Lazy <Func <Message, IReplyBotCommandHandler>, BotCommandAttribute> > replyCommandHandlers, IEnumerable <Lazy <Func <Message, IMessageEntityHandler <PollMessage, bool?> >, MessageEntityTypeAttribute> > messageEntityHandlers, RaidBattlesContext db, IClock clock) : base(bot, messageEntityHandlers) { myReplyCommandHandlers = replyCommandHandlers; myDb = db; }
public ShareInlineQueryHandler(RaidBattlesContext context, ITelegramBotClientEx bot, IUrlHelper urlHelper, IClock clock, RaidService raidService) { myContext = context; myBot = bot; myUrlHelper = urlHelper; myClock = clock; myRaidService = raidService; }
public FindCommandHandler(TelemetryClient telemetryClient, Message message, RaidBattlesContext context, ITelegramBotClient bot, IMemoryCache memoryCache) : base(message) { myTelemetryClient = telemetryClient; myContext = context; myBot = bot; myMemoryCache = memoryCache; }
public CancelCallbackQueryHandler(RaidBattlesContext context, RaidService raidService, IUrlHelper urlHelper, ChatInfo chatInfo, ITelegramBotClient bot) { myContext = context; myRaidService = raidService; myUrlHelper = urlHelper; myChatInfo = chatInfo; myBot = bot; }
public InviteInlineQueryHandler(IUrlHelper urlHelper, RaidService raidService, ITelegramBotClientEx bot, RaidBattlesContext db) { myUrlHelper = urlHelper; myRaidService = raidService; myBot = bot; myDB = db; }
public GymInlineQueryHandler(IUrlHelper urlHelper, IngressClient ingressClient, ITelegramBotClientEx bot, RaidBattlesContext db, RaidService raidService) { myUrlHelper = urlHelper; myIngressClient = ingressClient; myBot = bot; myDb = db; myRaidService = raidService; }
public FriendshipCallbackQueryHandler(ITelegramBotClient bot, IDictionary <long, ITelegramBotClient> bots, RaidBattlesContext db, FriendshipService friendshipService) { myBot = bot; myBots = bots; myDB = db; myFriendshipService = friendshipService; }
public NotificationServiceWorker(RaidBattlesContext db, RaidService raidService, TelemetryClient telemetryClient, IOptions <BotConfiguration> options, IClock clock) { myDB = db; myRaidService = raidService; myTelemetryClient = telemetryClient; myClock = clock; myNotificationLeadTime = options.Value.NotificationLeadTime; }
public TimeZoneNotifyService(RaidBattlesContext db, IDateTimeZoneProvider dateTimeZoneProvider, DateTimeZone dateTimeZone, IClock clock, ITelegramBotClient bot) { myDB = db; myDateTimeZoneProvider = dateTimeZoneProvider; myDateTimeZone = dateTimeZone; myClock = clock; myBot = bot; }
public RaidService(RaidBattlesContext context, ITelegramBotClient bot, TelemetryClient telemetryClient, ChatInfo chatInfo, IMemoryCache memoryCache, IOptions <BotConfiguration> botOptions) { myContext = context; myBot = bot; myTelemetryClient = telemetryClient; myChatInfo = chatInfo; myMemoryCache = memoryCache; myLogChat = botOptions.Value?.LogChatId is long chatId && chatId != default ? chatId : default(long?); }
public BotCommandMessageEntityHandler(RaidBattlesContext context, Message message, ITelegramBotClient telegramBotClient, RaidService raidService, IUrlHelper urlHelper, SetCallbackQueryHandler setCallbackQueryHandler) { myContext = context; myMessage = message; myTelegramBotClient = telegramBotClient; myRaidService = raidService; myUrlHelper = urlHelper; mySetCallbackQueryHandler = setCallbackQueryHandler; }
public GeneralInlineQueryHandler(ITelegramBotClientEx bot, IUrlHelper urlHelper, ShareInlineQueryHandler shareInlineQueryHandler, RaidService raidService, IngressClient ingressClient, RaidBattlesContext db) { myBot = bot; myUrlHelper = urlHelper; myShareInlineQueryHandler = shareInlineQueryHandler; myRaidService = raidService; myIngressClient = ingressClient; myDb = db; }
public UserSettingsCommandHandler(RaidBattlesContext context, ITelegramBotClient bot, IMemoryCache cache, IClock clock, GeoCoder geoCoder, IDateTimeZoneProvider dateTimeZoneProvider) { myContext = context; myBot = bot; myCache = cache; myClock = clock; myGeoCoder = geoCoder; myDateTimeZoneProvider = dateTimeZoneProvider; }
public VoteCallbackQueryHandler(RaidBattlesContext context, RaidService raidService, IUrlHelper urlHelper, IClock clock, IOptions <BotConfiguration> options) { myContext = context; myRaidService = raidService; myUrlHelper = urlHelper; myClock = clock; myVoteTimeout = options.Value.VoteTimeout; myBlackList = options.Value.BlackList ?? new HashSet <int>(0); }
public TimeZoneQueryHandler(ITelegramBotClientEx bot, IDateTimeZoneProvider dateTimeZoneProvider, IClock clock, IUrlHelper urlHelper, RaidBattlesContext db, IOptions <BotConfiguration> options, TimeZoneNotifyService timeZoneNotifyService, TimeZoneService timeZoneService) { myBot = bot; myDateTimeZoneProvider = dateTimeZoneProvider; myClock = clock; myUrlHelper = urlHelper; myDB = db; myTimeZoneNotifyService = timeZoneNotifyService; myTimeZoneService = timeZoneService; mySuperAdministrators = options.Value?.SuperAdministrators ?? new HashSet <long>(0); }
public IngressClient(HttpClient httpClient, TelemetryClient telemetryClient, RaidBattlesContext context, IOptions <IngressConfiguration> options, IClock clock) { myHttpClient = httpClient; myTelemetryClient = telemetryClient; myContext = context; myClock = clock; var configuration = options?.Value ?? throw new ArgumentNullException(nameof(options)); myHttpClient.BaseAddress = configuration.ServiceUrl; myHttpClient.Timeout = configuration.Timeout; myDefaultLocation = configuration.DefaultLocation ?? new Location(); }
public GymInlineQueryHandler(IUrlHelper urlHelper, GeneralInlineQueryHandler generalInlineQueryHandler, IngressClient ingressClient, ITelegramBotClientEx bot, RaidBattlesContext db, RaidService raidService, GeoCoderEx geoCoder, IClock clock, TimeZoneService timeZoneService) { myUrlHelper = urlHelper; myGeneralInlineQueryHandler = generalInlineQueryHandler; myIngressClient = ingressClient; myBot = bot; myDb = db; myRaidService = raidService; myGeoCoder = geoCoder; myClock = clock; myTimeZoneService = timeZoneService; }
public RaidService(RaidBattlesContext context, IDictionary <long, ITelegramBotClient> bots, TelemetryClient telemetryClient, IMemoryCache memoryCache, Func <ITelegramBotClient, ChatInfo> chatInfo, IOptions <BotConfiguration> botOptions) { myContext = context; myTelemetryClient = telemetryClient; myMemoryCache = memoryCache; myLogChat = botOptions.Value?.LogChatId is { } chatId&& chatId != default ? chatId : default(long?); var fallbackBot = botOptions.Value?.DefaultBotId is {} defaultBotId?bots[defaultBotId] : bots.Values.First(); // at least one bot, default myBot = botId => botId.HasValue && bots.TryGetValue(botId.Value, out var bot) ? bot : fallbackBot; myChatInfo = botId => chatInfo(myBot(botId)); }
public VoteCallbackQueryHandler(TelemetryClient telemetryClient, RaidBattlesContext db, IDictionary <long, ITelegramBotClient> bots, ITelegramBotClient bot, RaidService raidService, IUrlHelper urlHelper, IClock clock, IOptions <BotConfiguration> options, FriendshipService friendshipService, TimeZoneNotifyService timeZoneNotifyService) { myTelemetryClient = telemetryClient; myDb = db; myBots = bots; myBot = bot; myRaidService = raidService; myUrlHelper = urlHelper; myClock = clock; myFriendshipService = friendshipService; myTimeZoneNotifyService = timeZoneNotifyService; myVoteTimeout = options.Value.VoteTimeout; myBlackList = options.Value.BlackList ?? new HashSet <long>(0); }
public FriendshipService(RaidBattlesContext db) { myDB = db; }
public GymHelper(RaidBattlesContext dbContext, TelemetryClient telemetryClient, IOptions <GeoCoderConfiguration> geoCoderOptions) { myDbContext = dbContext; myTelemetryClient = telemetryClient; myGeoCoderOptions = geoCoderOptions.Value ?? throw new ArgumentNullException(nameof(geoCoderOptions)); }
public StatusProvider(IUrlHelper urlHelper, RaidBattlesContext db) { myUrlHelper = urlHelper; myDB = db; }
public StatusProvider(IUrlHelper urlHelper, RaidBattlesContext db, ZonedClock clock) { myUrlHelper = urlHelper; myDB = db; myClock = clock; }
public PortalModel(RaidBattlesContext db, ZonedClock clock, IngressClient ingressClient) { myDb = db; myClock = clock; myIngressClient = ingressClient; }