-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgressToastParams.cs
More file actions
31 lines (31 loc) · 1.06 KB
/
ProgressToastParams.cs
File metadata and controls
31 lines (31 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace MetadataChange
{
/// <summary>
/// Parameters used to control the information shown in the Progress Toast.
/// </summary>
public class ProgressToastParams
{
/// <summary>
/// The title to show in the Toast
/// </summary>
public string? Title { get; set; }
/// <summary>
/// The current progress
/// </summary>
public int? Progress { get; set; }
/// <summary>
/// The maximum of the progress bar
/// </summary>
public int? Max { get; set; }
/// <summary>
/// Action to run after one of these parameters has been changed.
/// Note that this action should remain unset, since it'll be overwritten by the Toast when loaded.
/// </summary>
public Action? UpdateState { get; set; }
/// <summary>
/// Action to run when the user wants to stop the operation.
/// If nothing is passed, the "Stop" button won't be visible.
/// </summary>
public Action? StopFetching { get; set; }
}
}