Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Configuration;
- using PokemonGo.RocketAPI.Enums;
- using PokemonGo.RocketAPI.GeneratedCode;
- using System;
- using System.Globalization;
- using System.Runtime.CompilerServices;
- using System.Collections.Generic;
- using AllEnum;
- namespace PokemonGo.RocketAPI.Console
- {
- public class Settings : ISettings
- {
- public AuthType AuthType => (AuthType)Enum.Parse(typeof(AuthType), UserSettings.Default.AuthType);
- public string PtcUsername => UserSettings.Default.PtcUsername;
- public string PtcPassword => UserSettings.Default.PtcPassword;
- public double DefaultLatitude => UserSettings.Default.DefaultLatitude;
- public double DefaultLongitude => UserSettings.Default.DefaultLongitude;
- ICollection<KeyValuePair<ItemId, int>> ISettings.itemRecycleFilter
- {
- get
- {
- //Type and amount to keep
- return new[]
- {
- new KeyValuePair<ItemId, int>(ItemId.ItemPotion, 0),
- new KeyValuePair<ItemId, int>(ItemId.ItemSuperPotion, 10),
- new KeyValuePair<ItemId, int>(ItemId.ItemHyperPotion, 10),
- new KeyValuePair<ItemId, int>(ItemId.ItemMaxPotion, 10),
- new KeyValuePair<ItemId, int>(ItemId.ItemRevive, 10),
- new KeyValuePair<ItemId, int>(ItemId.ItemRazzBerry, 50),
- };
- }
- set
- {
- throw new NotImplementedException();
- }
- }
- public string GoogleRefreshToken
- {
- get { return UserSettings.Default.GoogleRefreshToken; }
- set
- {
- UserSettings.Default.GoogleRefreshToken = value;
- UserSettings.Default.Save();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement