2025-03-20 21:36:58 +01:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
2025-06-20 14:10:17 +08:00
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
2025-03-20 21:36:58 +01:00
|
|
|
|
using System.Diagnostics.Tracing;
|
|
|
|
|
|
using Microsoft.CommandPalette.Extensions;
|
|
|
|
|
|
using Microsoft.PowerToys.Telemetry;
|
|
|
|
|
|
using Microsoft.PowerToys.Telemetry.Events;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.CmdPal.UI.Events;
|
|
|
|
|
|
|
|
|
|
|
|
[EventData]
|
2025-06-20 14:10:17 +08:00
|
|
|
|
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
|
2025-03-20 21:36:58 +01:00
|
|
|
|
public class CmdPalInvokeResult : EventBase, IEvent
|
|
|
|
|
|
{
|
|
|
|
|
|
public string ResultKind { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public CmdPalInvokeResult(CommandResultKind resultKind)
|
|
|
|
|
|
{
|
2025-12-19 11:23:16 -08:00
|
|
|
|
EventName = "CmdPal_InvokeResult";
|
2025-03-20 21:36:58 +01:00
|
|
|
|
ResultKind = resultKind.ToString();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public PartA_PrivTags PartA_PrivTags => PartA_PrivTags.ProductAndServiceUsage;
|
|
|
|
|
|
}
|