Skip to content

Commit

Permalink
Add Tutorial calls
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxRev committed Jul 25, 2016
1 parent 66584ca commit 01386ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions PokemonGo.RocketAPI/Rpc/Encounter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using POGOProtos.Enums;
using POGOProtos.Inventory.Item;
using POGOProtos.Networking.Requests;
using POGOProtos.Networking.Requests.Messages;
Expand Down Expand Up @@ -78,5 +79,15 @@ public async Task<DiskEncounterResponse> EncounterLurePokemon(ulong encounterId,

return await PostProtoPayload<Request, DiskEncounterResponse>(RequestType.DiskEncounter, message);
}

public async Task<EncounterTutorialCompleteResponse> EncounterLurePokemon(PokemonId pokemonId)
{
var message = new EncounterTutorialCompleteMessage()
{
PokemonId = pokemonId
};

return await PostProtoPayload<Request, EncounterTutorialCompleteResponse>(RequestType.EncounterTutorialComplete, message);
}
}
}
5 changes: 5 additions & 0 deletions PokemonGo.RocketAPI/Rpc/Misc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,10 @@ public async Task<EchoResponse> SendEcho()
{
return await PostProtoPayload<Request, EchoResponse>(RequestType.Echo, new EchoMessage());
}

public async Task<EncounterTutorialCompleteResponse> MarkTutorialComplete()
{
return await PostProtoPayload<Request, EncounterTutorialCompleteResponse>(RequestType.MarkTutorialComplete, new MarkTutorialCompleteMessage())
}
}
}

0 comments on commit 01386ff

Please sign in to comment.