private string SessionTypeIndicator(SessionType sessionType) { if (sessionType.Equals(SessionType.Double)) { return(" * "); } return(" "); }
public void StartSession(SessionType sessionType) { InitializeSession(); _startedTime = DateTimeOffset.Now.ToUnixTimeSeconds(); _empaticaHandler.StartSession(_startedTime); CurrentSessionType = sessionType; _isDataSession = CurrentSessionType.Equals(SessionType.Data); ResetModels(); _stopwatch.Reset(); _stopwatch.Start(); _stopwatchDisposable = Observable.Interval(TimeSpan.FromMilliseconds(10)) .SubscribeOn(RxApp.TaskpoolScheduler) .ObserveOn(RxApp.MainThreadScheduler) .Subscribe(_ => ElapsedTime = _stopwatch.Elapsed); _isCapturing = true; }