Advertisement
Guest User

Untitled

a guest
Jul 21st, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. using System.Configuration;
  2. using PokemonGo.RocketAPI.Enums;
  3. using PokemonGo.RocketAPI.GeneratedCode;
  4. using System;
  5. using System.Globalization;
  6. using System.Runtime.CompilerServices;
  7. using System.Collections.Generic;
  8. using AllEnum;
  9.  
  10. namespace PokemonGo.RocketAPI.Console
  11. {
  12. public class Settings : ISettings
  13. {
  14. public AuthType AuthType => (AuthType)Enum.Parse(typeof(AuthType), UserSettings.Default.AuthType);
  15. public string PtcUsername => UserSettings.Default.PtcUsername;
  16. public string PtcPassword => UserSettings.Default.PtcPassword;
  17. public double DefaultLatitude => UserSettings.Default.DefaultLatitude;
  18. public double DefaultLongitude => UserSettings.Default.DefaultLongitude;
  19.  
  20. ICollection<KeyValuePair<ItemId, int>> ISettings.itemRecycleFilter
  21. {
  22. get
  23. {
  24. //Type and amount to keep
  25. return new[]
  26. {
  27. new KeyValuePair<ItemId, int>(ItemId.ItemPotion, 0),
  28. new KeyValuePair<ItemId, int>(ItemId.ItemSuperPotion, 10),
  29. new KeyValuePair<ItemId, int>(ItemId.ItemHyperPotion, 10),
  30. new KeyValuePair<ItemId, int>(ItemId.ItemMaxPotion, 10),
  31. new KeyValuePair<ItemId, int>(ItemId.ItemRevive, 10),
  32. new KeyValuePair<ItemId, int>(ItemId.ItemRazzBerry, 50),
  33. };
  34. }
  35.  
  36. set
  37. {
  38. throw new NotImplementedException();
  39. }
  40. }
  41.  
  42. public string GoogleRefreshToken
  43. {
  44. get { return UserSettings.Default.GoogleRefreshToken; }
  45. set
  46. {
  47. UserSettings.Default.GoogleRefreshToken = value;
  48. UserSettings.Default.Save();
  49. }
  50. }
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement