// 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.
namespace CefSharp.DevTools.BackgroundService
{
///
/// BackgroundServiceEvent
///
[System.Runtime.Serialization.DataContractAttribute]
public class BackgroundServiceEvent : CefSharp.DevTools.DevToolsDomainEntityBase
{
///
/// Timestamp of the event (in seconds).
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))]
public long Timestamp
{
get;
set;
}
///
/// The origin this event belongs to.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))]
public string Origin
{
get;
set;
}
///
/// The Service Worker ID that initiated the event.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("serviceWorkerRegistrationId"), IsRequired = (true))]
public string ServiceWorkerRegistrationId
{
get;
set;
}
///
/// The Background Service this event belongs to.
///
public CefSharp.DevTools.BackgroundService.ServiceName Service
{
get
{
return (CefSharp.DevTools.BackgroundService.ServiceName)(StringToEnum(typeof(CefSharp.DevTools.BackgroundService.ServiceName), service));
}
set
{
service = (EnumToString(value));
}
}
///
/// The Background Service this event belongs to.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("service"), IsRequired = (true))]
internal string service
{
get;
set;
}
///
/// A description of the event.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("eventName"), IsRequired = (true))]
public string EventName
{
get;
set;
}
///
/// An identifier that groups related events together.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("instanceId"), IsRequired = (true))]
public string InstanceId
{
get;
set;
}
///
/// A list of event-specific information.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("eventMetadata"), IsRequired = (true))]
public System.Collections.Generic.IList EventMetadata
{
get;
set;
}
}
}