This repository has been archived by the owner on Aug 17, 2020. It is now read-only.
forked from snaverm/Pokemon-Go-Rocket-API
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ST-Apps/master
Login on enter keydown
- Loading branch information
Showing
49 changed files
with
1,532 additions
and
1,056 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains 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
This file contains 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
Binary file added
BIN
+60.4 KB
PokemonGo-UWP/AppPackages/PokemonGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.ps1
Binary file not shown.
Binary file added
BIN
+9.69 KB
...s/PokemonGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+9.8 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/cs-CZ/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+11.1 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/de-DE/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+9.69 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/en-US/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+10.3 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/es-ES/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+10.9 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/fr-FR/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+10.3 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/it-IT/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+6.36 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/ja-JP/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+6.05 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/ko-KR/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+9.64 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/pl-PL/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+10.1 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/pt-BR/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+9.89 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/ru-RU/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+9.19 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/tr-TR/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+4.75 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/zh-CN/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+4.92 KB
...monGo-UWP_1.0.8.0_ARM_Debug_Test/Add-AppDevPackage.resources/zh-TW/Add-AppDevPackage.psd1
Binary file not shown.
Binary file added
BIN
+7.46 MB
.../PokemonGo-UWP_1.0.8.0_ARM_Debug_Test/Dependencies/ARM/Microsoft.NET.CoreRuntime.1.0.appx
Binary file not shown.
Binary file added
BIN
+1.82 MB
...kemonGo-UWP_1.0.8.0_ARM_Debug_Test/Dependencies/ARM/Microsoft.VCLibs.ARM.Debug.14.00.appx
Binary file not shown.
Binary file added
BIN
+8.15 MB
.../PokemonGo-UWP_1.0.8.0_ARM_Debug_Test/Dependencies/x64/Microsoft.NET.CoreRuntime.1.0.appx
Binary file not shown.
Binary file added
BIN
+2.01 MB
...kemonGo-UWP_1.0.8.0_ARM_Debug_Test/Dependencies/x64/Microsoft.VCLibs.x64.Debug.14.00.appx
Binary file not shown.
Binary file added
BIN
+6.84 MB
.../PokemonGo-UWP_1.0.8.0_ARM_Debug_Test/Dependencies/x86/Microsoft.NET.CoreRuntime.1.0.appx
Binary file not shown.
Binary file added
BIN
+1.59 MB
...kemonGo-UWP_1.0.8.0_ARM_Debug_Test/Dependencies/x86/Microsoft.VCLibs.x86.Debug.14.00.appx
Binary file not shown.
Binary file added
BIN
+28.1 MB
...UWP/AppPackages/PokemonGo-UWP_1.0.8.0_ARM_Debug_Test/PokemonGo-UWP_1.0.8.0_ARM_Debug.appx
Binary file not shown.
Binary file added
BIN
+967 KB
.../AppPackages/PokemonGo-UWP_1.0.8.0_ARM_Debug_Test/PokemonGo-UWP_1.0.8.0_ARM_Debug.appxsym
Binary file not shown.
Binary file added
BIN
+726 Bytes
...-UWP/AppPackages/PokemonGo-UWP_1.0.8.0_ARM_Debug_Test/PokemonGo-UWP_1.0.8.0_ARM_Debug.cer
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Windows.Devices.Geolocation; | ||
using AllEnum; | ||
using Google.Protobuf; | ||
using PokemonGo.RocketAPI.GeneratedCode; | ||
using PokemonGo_UWP.Utils; | ||
using PokemonGo_UWP.Views; | ||
using Template10.Common; | ||
using Template10.Mvvm; | ||
|
||
namespace PokemonGo_UWP.Entities | ||
{ | ||
public class FortDataWrapper | ||
{ | ||
|
||
private readonly FortData _fortData; | ||
|
||
public FortDataWrapper(FortData fortData) | ||
{ | ||
_fortData = fortData; | ||
Geoposition = | ||
new Geopoint(new BasicGeoposition { Latitude = _fortData.Latitude, Longitude = _fortData.Longitude }); | ||
} | ||
|
||
private DelegateCommand _trySearchPokestop; | ||
|
||
/// <summary> | ||
/// We're just navigating to the capture page, reporting that the player wants to capture the selected Pokemon. | ||
/// The only logic here is to check if the encounter was successful before navigating, everything else is handled by | ||
/// the actual capture method. | ||
/// </summary> | ||
public DelegateCommand TrySearchPokestop => _trySearchPokestop ?? ( | ||
_trySearchPokestop = new DelegateCommand(() => | ||
{ | ||
NavigationHelper.NavigationState["CurrentPokestop"] = this; | ||
BootStrapper.Current.NavigationService.Navigate(typeof(SearchPokestopPage), true); | ||
}, () => true) | ||
); | ||
|
||
|
||
#region Wrapped Properties | ||
|
||
public FortType Type => _fortData.Type; | ||
|
||
public ByteString ActiveFortModifier => _fortData.ActiveFortModifier; | ||
|
||
public long CooldownCompleteTimestampMs => _fortData.CooldownCompleteTimestampMs; | ||
|
||
public bool Enabled => _fortData.Enabled; | ||
|
||
public PokemonId GuardPokemonId => _fortData.GuardPokemonId; | ||
|
||
public long GymPoints => _fortData.GymPoints; | ||
|
||
public string Id => _fortData.Id; | ||
|
||
public bool IsInBattle => _fortData.IsInBattle; | ||
|
||
public long LastModifiedTimestampMs => _fortData.LastModifiedTimestampMs; | ||
|
||
public FortLureInfo LureInfo => _fortData.LureInfo; | ||
|
||
public TeamColor OwnedByTeam => _fortData.OwnedByTeam; | ||
|
||
public FortRenderingType RenderingType => _fortData.RenderingType; | ||
|
||
public FortSponsor Sponsor => _fortData.Sponsor; | ||
|
||
public Geopoint Geoposition { get; set; } | ||
|
||
public int GuardPokemonCp => _fortData.GuardPokemonCp; | ||
|
||
public double Latitude => _fortData.Latitude; | ||
|
||
public double Longitude => _fortData.Longitude; | ||
|
||
#endregion | ||
|
||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Windows.UI.Popups; | ||
using PokemonGo_UWP.Views; | ||
using Template10.Common; | ||
using Template10.Services.NavigationService; | ||
|
||
namespace PokemonGo_UWP.Utils | ||
{ | ||
public static class ExceptionHandler | ||
{ | ||
|
||
public static async Task HandleException() | ||
{ | ||
var dialog = new MessageDialog("Something went wrong and app may be unstable now. Do you want to logout and try again?"); | ||
dialog.Commands.Add(new UICommand("Yes") { Id = 0 }); | ||
dialog.Commands.Add(new UICommand("No") { Id = 1 }); | ||
dialog.DefaultCommandIndex = 0; | ||
dialog.CancelCommandIndex = 1; | ||
var result = await dialog.ShowAsyncQueue(); | ||
if ((int)result.Id == 0) | ||
{ | ||
GameClient.DoLogout(); | ||
BootStrapper.Current.NavigationService.Navigate(typeof(MainPage)); | ||
} | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.