public Client(Shared.ClientSettings settings) { ReadyToUse = false; AuthType = settings.userType; Username = settings.userName; Password = settings.password; proxy = InitProxy(settings.proxyUrl, settings.proxyPort, settings.proxyUser, settings.proxyPass); PokemonHttpClient = new PokemonHttpClient(); Login = new Rpc.Login(this); Player = new Rpc.Player(this); Download = new Rpc.Download(this); Inventory = new Rpc.Inventory(this); Map = new Rpc.Map(this); Fort = new Rpc.Fort(this); Encounter = new Rpc.Encounter(this); Misc = new Rpc.Misc(this); Hasher = new PokeHashHasher(settings.hashKey); Store = new PokemonGo.RocketAPI.Rpc.Store(this); Platform = POGOProtos.Enums.Platform.Ios; //Player.SetCoordinates(settings.latitude, settings.longitude, settings.altitude); InventoryLastUpdateTimestamp = 0; AppVersion = Resources.Api.ClientVersionInt; SettingsHash = ""; CurrentApiEmulationVersion = settings.currentApi; }
public Client(Shared.ClientSettings settings) { ReadyToUse = false; AuthType = settings.userType; Username = settings.userName; Password = settings.password; proxy = InitProxy(settings.proxyUrl, settings.proxyPort, settings.proxyUser, settings.proxyPass); PokemonHttpClient = new PokemonHttpClient(); Login = new Rpc.Login(this); Player = new Rpc.Player(this); Download = new Rpc.Download(this); Inventory = new Rpc.Inventory(this); Map = new Rpc.Map(this); Fort = new Rpc.Fort(this); Encounter = new Rpc.Encounter(this); Misc = new Rpc.Misc(this); Crypter = new Cipher(); Hasher = new PokeHashHasher(settings.hashKey); Store = new PokemonGo.RocketAPI.Rpc.Store(this); if (DeviceSetup.SelectedDevice.OSType == "iOS") { Platform = POGOProtos.Enums.Platform.Ios; } else { Platform = POGOProtos.Enums.Platform.Android; } Logger.Info("Platform:" + Platform); InventoryLastUpdateTimestamp = 0; AppVersion = Resources.Api.AndroidClientVersionInt; SettingsHash = ""; CurrentApiEmulationVersion = settings.currentApi; }