-
Notifications
You must be signed in to change notification settings - Fork 693
/
IRunnerMessaging.cs
36 lines (29 loc) · 1.21 KB
/
IRunnerMessaging.cs
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
32
33
34
35
36
using RuriLib.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RuriLib.Runner
{
/// <summary>
/// Interface used to communicate between the RunnerViewModel and the corresponding View.
/// </summary>
public interface IRunnerMessaging
{
/// <summary>A message has arrived.</summary>
event Action<IRunnerMessaging, LogLevel, string, bool, int> MessageArrived;
/// <summary>The status of the Master Worker changed.</summary>
event Action<IRunnerMessaging> WorkerStatusChanged;
/// <summary>A Hit was found.</summary>
event Action<IRunnerMessaging, Hit> FoundHit;
/// <summary>The proxies need to be reloaded.</summary>
event Action<IRunnerMessaging> ReloadProxies;
/// <summary>An Action needs to be executed on the main thread.</summary>
event Action<IRunnerMessaging, Action> DispatchAction;
/// <summary>The progress needs to be saved.</summary>
event Action<IRunnerMessaging> SaveProgress;
/// <summary>The user needs to type the custom inputs.</summary>
event Action<IRunnerMessaging> AskCustomInputs;
}
}