This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text; | |
using Scanners.Common.ExtensionMethods; | |
namespace SportsApi.Models; | |
public class OutrightResponse | |
{ | |
public OutrightItem[] Items { get; set; } | |
public int Count { get; set; } | |
public Links OutrightsLinks { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SubscriptionManager | |
{ | |
private int _subscribeGamesCount; | |
private ScanLoop _subscriptionLoop; | |
private ScanLoop _unSubscriptionLoop; | |
private readonly SDDPParser _sddpParser; | |
private readonly SDDPMapper _sddpMapper; | |
private readonly ScannerConfigurations _scannerConfigurations; | |
private readonly ScannerMapperConfigurations _scannerMapperConfigurations; | |
private readonly WebSocketConfigurations _webSocketConfigurations; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"WhiteListInnerPagesConfiguration" : { | |
"countryToLeaguesList" : { | |
"albania" : [ | |
"superliga", | |
"albanian cup", | |
"super cup" | |
], | |
"algeria" : [ | |
"ligue 1", | |
"algeria cup", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.getCollection("Links").find({"_id":{"$in":["e7eb52a3-6263-4c14-9c4a-818eeba2e300", | |
"8f2ea2e0-e249-404d-b2fe-90cc0e1a609e", | |
"7a0e3aad-6281-4411-ba30-82fa3b62499a", | |
"e4709ca2-7575-4f0f-af26-d2716272117a", | |
"ef04a095-cb14-4388-8dc2-89754f77d4e9", | |
"1b9fc54c-c274-45ae-81f4-e45f4e88e063", | |
"9f29e31f-5ce8-4d57-b96d-b0ac3fe41fd4", | |
"ccef4347-8330-4a3d-a9a0-2b27c2632082", | |
"78c78640-c393-4811-9735-300218219e95", | |
"4d409a4e-46c8-4736-b917-c068b0e49be1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.ObjectModel; | |
using System.Diagnostics; | |
using Common.Dtos; | |
using Common.Models; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Chrome; | |
using OpenQA.Selenium.Firefox; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (update.CreateGame && createGamePriority != DataSourcesDAL.EPriorityLevel.Ignore) | |
{ | |
bool bWasDeleted = IsDeleted; | |
IsDeleted = false; | |
if (bWasDeleted && createGamePriority != DataSourcesDAL.EPriorityLevel.Neutral) | |
{ | |
CreateUpdate(update, EUpdateTypes.NewGame); | |
GamesDal.UpdateGameLastUpdateTime(ID, DateTime.UtcNow); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (UpdateSequence >= lngMinUpdateID) | |
{ | |
bGetAllGames = false; | |
// Get the games and notifications | |
List<CGameDTO> arrGames = GetGamesUpdates(arrUpdates, UpdateSequence, LangID, TimeZone, groupCategory, | |
Countries, Competitions, Competitors, Games, StartDateRange, EndDateRange, FullGameCenter, | |
UserCountry, WithExpandedColumns, filtersRelationOperator, withExpandedStats); | |
var sportTypeIds = arrGames.Select(g => g.SportTypeID).Distinct().ToArray(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id" : "617a71d533b9d389791739d0", | |
"ScannerName" : "LSport.Push.Domain.Scanners.LSportPushRabbitMqInPlayScanner", | |
"LSportScanner.PushService.InPlay" : { | |
"Handler" : { | |
"SportTypes" : [ | |
"football", | |
"basketball", | |
"tennis", | |
"ice hockey", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE B | |
( | |
User_Id BIGINT, | |
Item_Id BIGINT, | |
Searches BIGINT, | |
Clicks BIGINT, | |
Ctr BIGINT, | |
Item_Id_Num BIGINT | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override bool Scan() | |
{ | |
var mainScanTask = ScanMainPage(); | |
var innerPagesScanTask = mainScanTask.ContinueWith(finishedTask => ScanGamePage()).Unwrap(); | |
innerPagesScanTask.Wait(); | |
return true; | |
} |
NewerOlder