Skip to content

Commit

Permalink
feat: Add more info
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Oct 8, 2024
1 parent fc7312c commit 86dfaca
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ namespace Uno.UI.RemoteControl.Messaging.IDEChannel;
/// <summary>
/// A message sent by the IDE to the dev-server when a command is issued (like a menuitem invoked).
/// </summary>
/// <param name="WindowId">Id of the window that send the command (so handler can display some UI over it).</param>
/// <param name="Command">The name/id of the command (e.g. uno.hotreload.open_hotreload_window).</param>
/// <param name="CommandParameter">A json serialized parameter to execute the command.</param>
public record CommandRequestIdeMessage(string Command, string? CommandParameter = null) : IdeMessage(WellKnownScopes.Ide)
public record CommandRequestIdeMessage(long WindowId, string Command, string? CommandParameter = null) : IdeMessage(WellKnownScopes.Ide)
{
/// <summary>
/// A unique identifier of this command execution request that could be used to track the response (if any produced by the remote handler).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ namespace Uno.UI.RemoteControl.Messaging.IDEChannel;
/// <summary>
/// A message sent by the sev-server to the IDE to notify the user.
/// </summary>
/// <param name="Title">Title of the notification.</param>
/// <param name="Title">Kind of the notification.</param>
/// <param name="Title">Title of the notification (might not be visible on all IDEs).</param>
/// <param name="Message">The message of the notification.</param>
/// <param name="Commands">For call-to-action notification, set of commands to show with the notification.</param>
public record NotificationIdeMessage(string Title, string Message, Command[] Commands) : IdeMessage(WellKnownScopes.Ide);
public record NotificationIdeMessage(NotificationKind Kind, string Title, string Message, Command[] Commands) : IdeMessage(WellKnownScopes.Ide);

/// <summary>
/// Description of a command to execute.
Expand All @@ -20,3 +21,12 @@ public record NotificationIdeMessage(string Title, string Message, Command[] Com
/// <param name="Name">The name/id of the command (e.g. uno.hotreload.open_hotreload_window).</param>
/// <param name="Parameter">A json serialized parameter to execute the command.</param>
public record Command(string Text, string Name, string? Parameter = null);

/// <summary>
/// Kind of <see cref="NotificationIdeMessage"/>
/// </summary>
public enum NotificationKind
{
Information,
Error
}

0 comments on commit 86dfaca

Please sign in to comment.