Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential fix to Account IDs. #4

Merged
merged 1 commit into from
Mar 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions API Models/LolChampSelectChampSelectBannableChampions.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET.API_Models
namespace LCU.NET.API_Models
{
public class LolChampSelectChampSelectBannableChampions
{
Expand Down
8 changes: 1 addition & 7 deletions API Models/LolChampSelectChampSelectPickableChampions.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET.API_Models
namespace LCU.NET.API_Models
{
public class LolChampSelectChampSelectPickableChampions
{
Expand Down
8 changes: 1 addition & 7 deletions API Models/LolChatFriendResource.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET
namespace LCU.NET
{
public class LolChatFriendResource
{
Expand Down
2 changes: 1 addition & 1 deletion API Models/LolItemSetsItemSets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace LCU.NET
{
public class LolItemSetsItemSets
{
public int accountId { get; set; }
public long accountId { get; set; }
public LolItemSetsItemSet[] itemSets { get; set; }
public long timestamp { get; set; }
}
Expand Down
2 changes: 1 addition & 1 deletion API Models/LolLoginLoginSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace LCU.NET.API_Models
{
public class LolLoginLoginSession
{
public int accountId { get; set; }
public long accountId { get; set; }
public bool connected { get; set; }
public LolLoginLoginError error { get; set; }
public object gasToken { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion API Models/LolSummonerSummoner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace LCU.NET
{
public class LolSummonerSummoner
{
public int accountId { get; set; }
public long accountId { get; set; }
public string displayName { get; set; }
public string internalName { get; set; }
public string lastSeasonHighestRank { get; set; }
Expand Down
8 changes: 1 addition & 7 deletions API Models/RegionLocale.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET.API_Models
namespace LCU.NET.API_Models
{
public class RegionLocale
{
Expand Down
5 changes: 0 additions & 5 deletions EventData.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using LCU.NET.WAMP;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET
{
Expand Down
3 changes: 0 additions & 3 deletions ILeagueClient.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET
Expand Down
8 changes: 1 addition & 7 deletions IProxy.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using LCU.NET.WAMP;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RestSharp;

namespace LCU.NET
{
Expand Down
8 changes: 1 addition & 7 deletions InitializeMethod.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET
namespace LCU.NET
{
public enum InitializeMethod
{
Expand Down
5 changes: 0 additions & 5 deletions LeagueClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@
using RestSharp.Authenticators;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Dynamic;
using System.IO;
using System.Linq;
using System.Management;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
Expand Down
5 changes: 0 additions & 5 deletions LoL.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using LCU.NET.Plugins;
using LCU.NET.Plugins.LoL;
using Ninject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET
{
Expand Down
4 changes: 0 additions & 4 deletions MessageReceivedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using LCU.NET.WAMP;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET
{
Expand Down
4 changes: 0 additions & 4 deletions NoActiveDelegateException.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET
{
Expand Down
2 changes: 1 addition & 1 deletion Plugins/LoL/Champions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public interface IChampions

public class Champions : IChampions
{
private ILeagueClient Client;
private readonly ILeagueClient Client;
public Champions(ILeagueClient client)
{
this.Client = client;
Expand Down
6 changes: 1 addition & 5 deletions Plugins/LoL/Chat.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET.Plugins.LoL
Expand All @@ -15,7 +11,7 @@ public interface IChat

public class Chat : IChat
{
private ILeagueClient Client;
private readonly ILeagueClient Client;
public Chat(ILeagueClient client)
{
this.Client = client;
Expand Down
4 changes: 0 additions & 4 deletions Plugins/LoL/GameQueues.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET.Plugins.LoL
Expand Down
6 changes: 1 addition & 5 deletions Plugins/LoL/ItemSets.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET.Plugins.LoL
Expand All @@ -16,7 +12,7 @@ public interface IItemsSets

public class ItemSets : IItemsSets
{
private ILeagueClient Client;
private readonly ILeagueClient Client;
public ItemSets(ILeagueClient client)
{
this.Client = client;
Expand Down
3 changes: 1 addition & 2 deletions Plugins/LoL/Lobby.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using LCU.NET.API_Models;
using RestSharp;
using System.Threading.Tasks;
using static LCU.NET.LeagueClient;

namespace LCU.NET.Plugins.LoL
{
Expand All @@ -26,7 +25,7 @@ public class Lobby : ILobby
public const string InvitationsEndpoint = Endpoint + "/invitations";
public const string MatchmakingEndpoint = Endpoint + "/matchmaking";

private ILeagueClient Client;
private readonly ILeagueClient Client;
public Lobby(ILeagueClient client)
{
this.Client = client;
Expand Down
2 changes: 1 addition & 1 deletion Plugins/LoL/Login.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Login : ILogin
{
public const string Endpoint = "/lol-login/v1/session";

private ILeagueClient Client;
private readonly ILeagueClient Client;
public Login(ILeagueClient client)
{
this.Client = client;
Expand Down
7 changes: 1 addition & 6 deletions Plugins/LoL/Matchmaking.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static LCU.NET.LeagueClient;

namespace LCU.NET.Plugins.LoL
{
Expand All @@ -23,7 +18,7 @@ public class Matchmaking : IMatchmaking
public const string ReadyCheckEndpoint = "/lol-matchmaking/v1/ready-check";
public const string SearchEndpoint = "/lol-matchmaking/v1/search";

private ILeagueClient Client;
private readonly ILeagueClient Client;
public Matchmaking(ILeagueClient client)
{
this.Client = client;
Expand Down
4 changes: 2 additions & 2 deletions Plugins/LoL/Perks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public interface IPerks

public class Perks : IPerks
{
private ILeagueClient Client;
private IPluginManager PluginManager;
private readonly ILeagueClient Client;
private readonly IPluginManager PluginManager;

public Perks(ILeagueClient client, IPluginManager pluginManager)
{
Expand Down
6 changes: 1 addition & 5 deletions Plugins/LoL/Summoner.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET.Plugins.LoL
Expand All @@ -16,7 +12,7 @@ public interface ISummoner

public class Summoner : ISummoner
{
private ILeagueClient Client;
private readonly ILeagueClient Client;
public Summoner(ILeagueClient client)
{
this.Client = client;
Expand Down
5 changes: 2 additions & 3 deletions Plugins/PluginManager.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using RestSharp;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;

Expand All @@ -12,13 +11,13 @@ public interface IPluginManager

public class PluginManager : IPluginManager
{
private ILeagueClient Client;
private readonly ILeagueClient Client;
public PluginManager(ILeagueClient client)
{
this.Client = client;
}

private IDictionary<string, byte[]> Cache = new Dictionary<string, byte[]>();
private readonly IDictionary<string, byte[]> Cache = new Dictionary<string, byte[]>();

public async Task<byte[]> GetAssetAsync(string plugin, string path, bool cache = true)
{
Expand Down
6 changes: 1 addition & 5 deletions Plugins/ProcessControl.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET.Plugins
Expand All @@ -15,7 +11,7 @@ public interface IProcessControl

public class ProcessControl : IProcessControl
{
private ILeagueClient Client;
private readonly ILeagueClient Client;
public ProcessControl(ILeagueClient client)
{
this.Client = client;
Expand Down
3 changes: 1 addition & 2 deletions Plugins/RiotClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using LCU.NET.API_Models;
using RestSharp;
using System.Threading.Tasks;
using static LCU.NET.LeagueClient;

namespace LCU.NET.Plugins
{
Expand All @@ -15,7 +14,7 @@ public interface IRiotClient

public class RiotClient : IRiotClient
{
private ILeagueClient Client;
private readonly ILeagueClient Client;
public RiotClient(ILeagueClient client)
{
this.Client = client;
Expand Down
4 changes: 0 additions & 4 deletions Utils/LWebSocket.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Authentication;
using System.Text;
using System.Threading.Tasks;
using WebSocketSharp;

namespace LCU.NET.Utils
Expand Down
6 changes: 1 addition & 5 deletions Utils/ProcessResolver.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics;
using System.Linq;
using System.Management;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET.Utils
{
Expand Down
4 changes: 0 additions & 4 deletions WAMP/JsonApiEvent.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCU.NET.WAMP
{
Expand Down