Click or drag to resize

Source Class

Contains basic information about a source of data that was used to satisfy a request.
Inheritance Hierarchy
SystemObject
  DegreeDays.Api.DataSource

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public sealed class Source

The Source type exposes the following members.

Properties
 NameDescription
Public propertyDistanceFromTarget Gets the Distance of the Station from the target location that was specified in the original request for data.
Public propertyStation Gets the non-null Station that this source represents.
Top
Methods
 NameDescription
Public methodEquals Returns true if obj is a Source object with equal fields to this.
(Overrides ObjectEquals(Object))
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides ObjectGetHashCode)
Public methodToString Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ObjectToString)
Top
Remarks

On the surface this appears very similar to the Station object that it contains, but there is a key difference: the information contained in a Source is specifically relevant to a particular request for data, whilst the Station is independent of that. For example, the Source contains the DistanceFromTarget, which is the distance of the Station from the target location that was specified in the request.

Thread Safety
Instances of this class are immutable. You can safely reuse them and call them from multiple threads at once.
See Also