static void Main(string[] args) { using (LilaClient client = new LilaClient()) { client.Events.OnNewHook += OnNewHook; //Login as anonymous client.Login(); Console.WriteLine("Ready."); Console.ReadKey(); } }
/// <summary> /// Initializes a new instance of the <see cref="TournamentEvent"/> class. /// </summary> /// <param name="client">The client.</param> /// <param name="tournament">The tournament.</param> public TournamentEvent(LilaClient client, LilaTournament tournament) : base(client) { Tournament = tournament; }
/// <summary> /// Initializes a new instance of the <see cref="JoinGameEvent"/> class. /// </summary> /// <param name="client">The client.</param> /// <param name="game">The game.</param> public JoinGameEvent(LilaClient client, LilaGame game) : base(client) { Game = game; }
/// <summary> /// Initializes a new instance of the <see cref="LatencyEvent"/> class. /// </summary> /// <param name="client">The client.</param> /// <param name="latency">The latency.</param> public LatencyEvent(LilaClient client, int latency) : base(client) { Latency = latency; }
/// <summary> /// Initializes a new instance of the <see cref="DisconnectEvent"/> class. /// </summary> /// <param name="client">The client.</param> public DisconnectEvent(LilaClient client) : base(client) { }
/// <summary> /// Initializes a new instance of the <see cref="ChallengesEvent"/> class. /// </summary> /// <param name="client">The client.</param> /// <param name="challenges">The challenges.</param> public ChallengesEvent(LilaClient client, ChallengesData challenges) : base(client) { Challenges = challenges; }
/// <summary> /// Initializes a new instance of the <see cref="TournamentsEvent"/> class. /// </summary> /// <param name="client">The client.</param> /// <param name="tournaments">The tournaments.</param> public TournamentsEvent(LilaClient client, List <TournamentHtmlEntry> tournaments) : base(client) { Tournaments = tournaments; }
/// <summary> /// Initializes a new instance of the <see cref="LilaGameMoveEvent"/> class. /// </summary> /// <param name="client">The client.</param> /// <param name="game">The game.</param> /// <param name="move">The move.</param> public LilaGameMoveEvent(LilaClient client, LilaGame game, MoveData move) : base(client, game) { Move = move; }
/// <summary> /// Initializes a new instance of the <see cref="LilaEvent"/> class. /// </summary> /// <param name="client">The client.</param> public LilaEvent(LilaClient client) { Client = client; }
/// <summary> /// Initializes a new instance of the <see cref="HookEvent"/> class. /// </summary> /// <param name="client">The client.</param> /// <param name="hook">The hook.</param> public HookEvent(LilaClient client, IHook hook) : base(client) { Hook = hook; }