-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-save and allow restoring previous recording if the app crashes #54
- Loading branch information
1 parent
37343c9
commit eb7a539
Showing
11 changed files
with
488 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Threading.Tasks; | ||
|
||
namespace FlightRecorder.Client.Logics; | ||
|
||
public interface IDialogLogic | ||
{ | ||
bool Confirm(string message); | ||
void Error(string error); | ||
Task<string?> SaveAsync(SavedData data); | ||
Task<(string? fileName, SavedData? data)> LoadAsync(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using FlightRecorder.Client.Logics; | ||
using System.Threading.Tasks; | ||
|
||
namespace FlightRecorder.Client; | ||
|
||
/// <summary> | ||
/// Handle emergency save on crash | ||
/// </summary> | ||
public interface ICrashLogic | ||
{ | ||
Task LoadDataAsync(StateMachine stateMachine, IReplayLogic replayLogic); | ||
void SaveData(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.