示例#1
0
 public override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     BasicProxiesFactory = new BasicProxiesFactory();
     InitTimer();
     MarkerOptionsArray = new List <MarkerOptions>();
 }
示例#2
0
        public override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            prefs = Application.Context.GetSharedPreferences("LumoTrack", FileCreationMode.Private);

            UserID = prefs.GetString("DeviceId", null);

            FireBaseToken = prefs.GetString("FireBaseToken", null);

            BasicProxiesFactory = new BasicProxiesFactory();
        }
示例#3
0
        public async System.Threading.Tasks.Task UpsertDeviceAsync(double latitude, double longitude)
        {
            var basicProxiesFactory = new BasicProxiesFactory();
            var deviceProxy         = basicProxiesFactory.GetDeviceProxy();

            DeviceDTO deviceDTO = GetDeviceInfo(latitude, longitude);

            var response = await deviceProxy.Update(deviceDTO);

            if (response.StatusCode == System.Net.HttpStatusCode.OK)
            {
                SetDeviceId(response.Data.DeviceId);
            }
        }
示例#4
0
        public override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            BasicProxiesFactory = new BasicProxiesFactory();
        }