Skip to content

Commit

Permalink
Release version 1.3.1 containing:
Browse files Browse the repository at this point in the history
- new API level 59.1
- gym battling
- buddy pokemon placement for baby pokemon
- journal
- stability updates
  • Loading branch information
mtaheij committed Apr 8, 2017
1 parent 05a9766 commit 451a5b2
Show file tree
Hide file tree
Showing 51 changed files with 1,262 additions and 656 deletions.
5 changes: 0 additions & 5 deletions POGOLib.Official/Configuration.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using POGOLib.Official.Util.Hash;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace POGOLib.Official
{
Expand Down
7 changes: 1 addition & 6 deletions POGOLib.Official/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace POGOLib.Official
namespace POGOLib.Official
{
public static class Constants
{
Expand Down
11 changes: 11 additions & 0 deletions POGOLib.Official/Exceptions/SessionStateException.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;

namespace POGOLib.Official.Exceptions
{
public class SessionStateException : Exception
{
public SessionStateException(string message) : base(message)
{
}
}
}
2 changes: 0 additions & 2 deletions POGOLib.Official/Extensions/RandomExtension.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace POGOLib.Official.Extensions
{
Expand Down
7 changes: 1 addition & 6 deletions POGOLib.Official/Logging/LogLevel.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace POGOLib.Official.Logging
namespace POGOLib.Official.Logging
{
public enum LogLevel
{
Expand Down
7 changes: 2 additions & 5 deletions POGOLib.Official/Logging/Logger.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace POGOLib.Official.Logging
{
Expand Down Expand Up @@ -43,7 +40,7 @@ public static void Error(string message)

private static void Output(LogLevel logLevel, string message)
{
foreach (var logOutput in LogOutputs)
foreach(var logOutput in LogOutputs)
{
logOutput(logLevel, message);
}
Expand Down
7 changes: 2 additions & 5 deletions POGOLib.Official/LoginProviders/ILoginProvider.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using POGOLib.Official.Net.Authentication.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Threading.Tasks;
using POGOLib.Official.Net.Authentication.Data;

namespace POGOLib.Official.LoginProviders
{
Expand Down
3 changes: 0 additions & 3 deletions POGOLib.Official/LoginProviders/PtcLoginException.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace POGOLib.Official.LoginProviders
{
Expand Down
12 changes: 6 additions & 6 deletions POGOLib.Official/LoginProviders/PtcLoginProvider.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using POGOLib.Official.Logging;
using POGOLib.Official.Net.Authentication.Data;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using POGOLib.Official.Logging;
using POGOLib.Official.Net.Authentication.Data;

namespace POGOLib.Official.LoginProviders
{

/// <summary>
/// The <see cref="ILoginProvider"/> for Pokemon Trainer Club.
/// Use this if you want to authenticate to PokemonGo using a Pokemon Trainer Club account.
Expand Down
7 changes: 2 additions & 5 deletions POGOLib.Official/Net/Authentication/Data/AccessToken.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using Newtonsoft.Json;
using System;
using Newtonsoft.Json;
using POGOProtos.Networking.Envelopes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace POGOLib.Official.Net.Authentication.Data
{
Expand Down
4 changes: 0 additions & 4 deletions POGOLib.Official/Net/Authentication/Data/LoginData.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace POGOLib.Official.Net.Authentication.Data
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace POGOLib.Official.Net.Authentication.Exceptions
{
public class WrongCredentialsException : Exception
{

public WrongCredentialsException(string message) : base(message)
{

}

}
}
10 changes: 4 additions & 6 deletions POGOLib.Official/Net/Authentication/Login.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using GeoCoordinatePortable;
using System;
using System.Threading.Tasks;
using GeoCoordinatePortable;
using POGOLib.Official.Logging;
using POGOLib.Official.LoginProviders;
using POGOLib.Official.Net.Authentication.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using static POGOProtos.Networking.Envelopes.Signature.Types;

namespace POGOLib.Official.Net.Authentication
Expand Down Expand Up @@ -77,6 +75,6 @@ public static async Task<Session> GetSession(ILoginProvider loginProvider, GeoCo
{
return new Session(loginProvider, await loginProvider.GetAccessToken(), coordinate, deviceInfo);
}

}
}
14 changes: 14 additions & 0 deletions POGOLib.Official/Net/Captcha/CaptchaEventArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;

namespace POGOLib.Official.Net.Captcha
{
public class CaptchaEventArgs : EventArgs
{
public CaptchaEventArgs(string captchaUrl)
{
CaptchaUrl = captchaUrl;
}

public string CaptchaUrl { get; }
}
}
Loading

0 comments on commit 451a5b2

Please sign in to comment.