-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIEvent.cs
More file actions
59 lines (53 loc) · 1.74 KB
/
IEvent.cs
File metadata and controls
59 lines (53 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using RapidField.SolidInstruments.Command;
using System;
namespace RapidField.SolidInstruments.EventAuthoring
{
/// <summary>
/// Represents information about an event.
/// </summary>
public interface IEvent : ICommand, IComparable<IEvent>, IEquatable<IEvent>
{
/// <summary>
/// Converts the current <see cref="IEvent" /> to an array of bytes.
/// </summary>
/// <returns>
/// An array of bytes representing the current <see cref="IEvent" />.
/// </returns>
public Byte[] ToByteArray();
/// <summary>
/// Gets or sets the category of the event.
/// </summary>
public EventCategory Category
{
get;
set;
}
/// <summary>
/// Gets or sets a textual description of the event.
/// </summary>
public String Description
{
get;
set;
}
/// <summary>
/// Gets or sets a <see cref="DateTime" /> that indicates when the event occurred.
/// </summary>
public DateTime TimeStamp
{
get;
set;
}
/// <summary>
/// Gets or sets the verbosity level of the event.
/// </summary>
public EventVerbosity Verbosity
{
get;
set;
}
}
}