Skip to content

Commit

Permalink
Upgrade to latest proto NuGet
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxRev committed Jul 25, 2016
1 parent 9e5d15e commit 6c1a13d
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 8 deletions.
7 changes: 3 additions & 4 deletions PokemonGo.RocketAPI/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using PokemonGo.RocketAPI.Helpers;
using PokemonGo.RocketAPI.Login;
using POGOProtos.Inventory;
using POGOProtos.Inventory.Item;
using POGOProtos.Networking.Envelopes;
using POGOProtos.Networking.Requests;
using POGOProtos.Networking.Requests.Messages;
Expand Down Expand Up @@ -299,8 +300,8 @@ public async Task<CatchPokemonResponse> CatchPokemon(ulong encounterId, string s
var message = new CatchPokemonMessage
{
EncounterId = encounterId,
Pokeball = (int) pokeballItemId,
SpawnPointGuid = spawnPointGuid,
Pokeball = pokeballItemId,
SpawnPointId = spawnPointGuid,
HitPokemon = true,
NormalizedReticleSize = 1.950,
SpinModifier = 1,
Expand Down Expand Up @@ -360,8 +361,6 @@ public async Task<UseItemXpBoostResponse> UseItemXpBoost()

var request = RequestBuilder.GetRequestEnvelope(RequestType.UseItemXpBoost, message);
return await _httpClient.PostProtoPayload<Request, UseItemXpBoostResponse>($"https://{_apiUrl}/rpc", request);


}
}
}
6 changes: 4 additions & 2 deletions PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
<HintPath>$(SolutionDir)\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="POGOProtos, Version=1.0.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>$(SolutionDir)packages\POGOProtos.1.0.1\lib\net45\POGOProtos.dll</HintPath>
<Reference Include="POGOProtos, Version=1.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\POGOProtos.1.2.0\lib\net45\POGOProtos.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="S2Geometry, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down Expand Up @@ -93,6 +93,8 @@
<Compile Include="ISettings.cs" />
<Compile Include="Login\GoogleLogin.cs" />
<Compile Include="Login\PtcLogin.cs" />
<Compile Include="Rpc\Inventory.cs" />
<Compile Include="Rpc\Login.cs" />
<None Include="app.config" />
<Compile Include="Client.cs" />
<Compile Include="Extensions\HttpClientExtensions.cs" />
Expand Down
12 changes: 12 additions & 0 deletions PokemonGo.RocketAPI/Rpc/Inventory.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PokemonGo.RocketAPI.Rpc
{
class Inventory
{
}
}
12 changes: 12 additions & 0 deletions PokemonGo.RocketAPI/Rpc/Login.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PokemonGo.RocketAPI.Rpc
{
class Login
{
}
}
3 changes: 1 addition & 2 deletions PokemonGo.RocketAPI/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<packages>
<package id="C5" version="2.2.5073.27396" targetFramework="net45" />
<package id="EnterpriseLibrary.TransientFaultHandling" version="6.0.1304.0" targetFramework="net45" />
Expand All @@ -8,7 +7,7 @@
<package id="Google.Protobuf.Tools" version="3.0.0-beta3" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net45" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
<package id="POGOProtos" version="1.0.1" targetFramework="net45" />
<package id="POGOProtos" version="1.2.0" targetFramework="net45" />
<package id="S2Geometry" version="1.0.1" targetFramework="net45" />
<package id="VarintBitConverter" version="1.0.0.0" targetFramework="net45" />
</packages>

0 comments on commit 6c1a13d

Please sign in to comment.