Click or drag to resize

SerializableTimeSeriesDataPoint Class

Represents a time-series data-point that can be serialized using XmlSerializer, DataContractSerializer or DataContractJsonSerializer.
Inheritance Hierarchy
SystemObject
  GSF.Historian.DataServicesSerializableTimeSeriesDataPoint

Namespace: GSF.Historian.DataServices
Assembly: GSF.Historian (in GSF.Historian.dll) Version: 2.4.181-beta
Syntax
[XmlTypeAttribute("TimeSeriesDataPoint")]
[DataContractAttribute(Name = "TimeSeriesDataPoint", Namespace = "")]
public class SerializableTimeSeriesDataPoint
View Source

The SerializableTimeSeriesDataPoint type exposes the following members.

Constructors
 NameDescription
Public methodSerializableTimeSeriesDataPoint Initializes a new instance of the SerializableTimeSeriesDataPoint class.
Public methodSerializableTimeSeriesDataPoint(IDataPoint) Initializes a new instance of the SerializableTimeSeriesDataPoint class.
Top
Properties
 NameDescription
Public propertyHistorianID Gets or sets the HistorianID.
Public propertyQuality Gets or sets the Quality.
Public propertyTime Gets or sets the String representation of Time.
Public propertyValue Gets or sets the Value.
Top
Methods
 NameDescription
Public methodDeflate Returns an IDataPoint object for this SerializableTimeSeriesDataPoint.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Example
This is the output for SerializableTimeSeriesDataPoint serialized using XmlSerializer:
C#
<?xml version="1.0"?>
<TimeSeriesDataPoint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  HistorianID="1" Time="2009-08-21 14:21:23.236" Value="60.0419579" Quality="Good" />
This is the output for SerializableTimeSeriesDataPoint serialized using DataContractSerializer:
C#
<TimeSeriesDataPoint xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <HistorianID>1</HistorianID>
  <Time>2009-08-21 14:21:54.612</Time>
  <Value>60.025547</Value>
  <Quality>Good</Quality>
</TimeSeriesDataPoint>
This is the output for SerializableTimeSeriesDataPoint serialized using DataContractJsonSerializer:
C#
{
  "HistorianID":1,
  "Time":"2009-08-21 14:22:26.971",
  "Value":59.9974136,
  "Quality":29
}
See Also