@@ -24,9 +24,13 @@ private static ISettings AppSettings
2424 private const string IdToken = "id_token" ;
2525 private const string IdUseMocks = "use_mocks" ;
2626 private const string IdUrlBase = "url_base" ;
27+ private const string IdUseFakeLocation = "use_fake_location" ;
28+ private const string IdFakeLatitude = "fake_latitude" ;
29+ private const string IdFakeLongitude = "fake_longitude" ;
2730 private static readonly string AccessTokenDefault = string . Empty ;
2831 private static readonly string IdTokenDefault = string . Empty ;
2932 private static readonly bool UseMocksDefault = true ;
33+ private static readonly bool UseFakeLocationDefault = false ;
3034 private static readonly string UrlBaseDefault = GlobalSetting . Instance . BaseEndpoint ;
3135
3236 #endregion
@@ -78,5 +82,40 @@ public static string UrlBase
7882 AppSettings . AddOrUpdateValue < string > ( IdUrlBase , value ) ;
7983 }
8084 }
85+
86+ public static bool UseFakeLocation
87+ {
88+ get
89+ {
90+ return AppSettings . GetValueOrDefault < bool > ( IdUseFakeLocation , UseFakeLocationDefault ) ;
91+ }
92+ set
93+ {
94+ AppSettings . AddOrUpdateValue < bool > ( IdUseFakeLocation , value ) ;
95+ }
96+ }
97+
98+ public static double FakeLatitude
99+ {
100+ get
101+ {
102+ return AppSettings . GetValueOrDefault < double > ( IdFakeLatitude ) ;
103+ }
104+ set
105+ {
106+ AppSettings . AddOrUpdateValue < double > ( IdFakeLatitude , value ) ;
107+ }
108+ }
109+ public static double FakeLongitude
110+ {
111+ get
112+ {
113+ return AppSettings . GetValueOrDefault < double > ( IdFakeLongitude ) ;
114+ }
115+ set
116+ {
117+ AppSettings . AddOrUpdateValue < double > ( IdFakeLongitude , value ) ;
118+ }
119+ }
81120 }
82121}
0 commit comments