mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
fc3a41ea82
- Improve xml doc - Reduce code duplication
37 lines
956 B
C#
37 lines
956 B
C#
// Copyright © 2020 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
|
using System;
|
|
|
|
namespace CefSharp.DevTools
|
|
{
|
|
/// <summary>
|
|
/// DevTools Event EventAargs
|
|
/// </summary>
|
|
public class DevToolsEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// Event Name
|
|
/// </summary>
|
|
public string EventName { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Event paramaters as Json string
|
|
/// </summary>
|
|
public string ParametersAsJsonString { get; private set; }
|
|
|
|
public DevToolsEventArgs(string eventName, string paramsAsJsonString)
|
|
{
|
|
EventName = eventName;
|
|
ParametersAsJsonString = paramsAsJsonString;
|
|
}
|
|
|
|
internal T DeserializeJson<T>()
|
|
{
|
|
return DevToolsClient.DeserializeJson<T>(ParametersAsJsonString);
|
|
}
|
|
}
|
|
}
|