32 lines
No EOL
947 B
C#
32 lines
No EOL
947 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace Shuttle.Api.ServerAPI
|
|
{
|
|
public interface INotificationRoutes
|
|
{
|
|
/// <summary>
|
|
/// Notify the server the task with the given requestToken was done.
|
|
/// </summary>
|
|
Task NotifyTaskCompleted(string requestToken, string message);
|
|
|
|
/// <summary>
|
|
/// Notify the server the task with the given requestToken was done.
|
|
/// </summary>
|
|
Task NotifyTaskFailed(string requestToken, string errorMessage);
|
|
|
|
/// <summary>
|
|
/// Notify the server a project was opened.
|
|
/// </summary>
|
|
Task NotifyProjectOpened(string filename);
|
|
|
|
/// <summary>
|
|
/// Notify the server a project was closed.
|
|
/// </summary>
|
|
Task NotifyProjectClosed(string filename);
|
|
|
|
/// <summary>
|
|
/// Notify the server the window got the focus.
|
|
/// </summary>
|
|
Task NotifyWindowFocused();
|
|
}
|
|
} |