示例#1
0
        public UploaderWorker(Context context, WorkerParameters workerParameters) : base(context, workerParameters)
        {
            _settingsService   = new SettingsService();
            _locationService   = new LocationService();
            _networkLogService = new NetworkLogService();

            _localBroadcastManager = LocalBroadcastManager.GetInstance(context);
        }
        public CustomNetworkCallback(WifiManager wifiManager, Action startLocationUpdates, Action stopLocationUpdates)
        {
            _wifiManager          = wifiManager;
            _startLocationUpdates = startLocationUpdates;
            _stopLocationUpdates  = stopLocationUpdates;

            _networkLogService = new NetworkLogService();
            _settingsService   = new SettingsService();
            IsConnected        = false;
        }
示例#3
0
        private List <NetworkLogEntity> GetNetworkLogs(DateTime from, DateTime to)
        {
            var service = new NetworkLogService();

            var entities = service
                           .Query(from, to)
                           .OrderBy(i => i.DateTime)
                           .ToList();

            return(entities);
        }