34 lines
931 B
C#
34 lines
931 B
C#
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace Hylasoft.Opc.Common
|
|
{
|
|
/// <summary>
|
|
/// Base class representing a monitor event on the OPC server
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
public class ReadEvent<T>
|
|
{
|
|
/// <summary>
|
|
/// Gets the value that was read from the server
|
|
/// </summary>
|
|
public T Value { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the quality of the signal from the server
|
|
/// </summary>
|
|
[DefaultValue(Common.Quality.Unknown)]
|
|
public Quality Quality { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the source timestamp on when the event ocurred
|
|
/// </summary>
|
|
public DateTime SourceTimestamp { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the server timestamp on when the event ocurred
|
|
/// </summary>
|
|
public DateTime ServerTimestamp { get; set; }
|
|
}
|
|
}
|