/// <summary> /// Called when user interacted with session notification /// </summary> /// <param name="action">The action user has made</param> private void NotificationRequest(AppAction action) { // Fire proper command based on the action // So clicking on the notification has the exact same effect as clicking on the page switch (action) { case AppAction.NextSessionTask: { mSessionHandler.Finish(); } break; case AppAction.PauseSession: { mSessionHandler.Pause(); } break; case AppAction.ResumeSession: { mSessionHandler.Resume(); } break; case AppAction.StopSession: { mSessionHandler.EndSession(); } break; } }
/// <summary> /// Finish task action, tell handler to finish and reload task list /// </summary> private void FinishTask() { mSessionHandler.Finish(); }