Interface IDataTypes
The Diffusion data type implementations.
Namespace: PushTechnology.ClientInterface.Data
Assembly: Diffusion.Client.dll
Syntax
public interface IDataTypes
Remarks
An instance can be obtained by calling DataTypes.
All value types and delta types implement System.Object.Equals(object)
equality and System.Object.ToString().
Since 5.8
Properties
Binary
Returns the Binary data type.
Declaration
IBinaryDataType Binary { get; }
Property Value
| Type | Description |
|---|---|
| IBinaryDataType | The Binary data type. |
Remarks
This data type supports arbitrary binary data.
DoubleFloat
Returns the data type that supports double-precision floating point numbers. (Eight-byte IEEE 754).
Declaration
IDataType<double?> DoubleFloat { get; }
Property Value
| Type | Description |
|---|---|
| IDataType<System.Nullable<System.Double>> | The data type for double-precision floating point numbers. |
Remarks
The floating point value is serialized as CBOR-format binary.
The data type does not support binary deltas.
The data type supports null System.Double instances.
Since 6.0.
Int64
Returns the data type that supports 64-bit, signed integer values.
Declaration
IDataType<long?> Int64 { get; }
Property Value
| Type | Description |
|---|---|
| IDataType<System.Nullable<System.Int64>> | The data type for 64-bit, signed integer values. |
Remarks
The integer value is serialized as CBOR-format binary.
The data type does not support binary deltas.
The data type supports null System.Int64 instances.
Since 6.0.
JSON
Returns the JSON data type.
Declaration
IJSONDataType JSON { get; }
Property Value
| Type | Description |
|---|---|
| IJSONDataType | The JSON data type. |
Remarks
JSON is "JavaScript Object Notation", a lightweight data-interchange format. See www.json.org.
RecordV2
Returns the data type that supports data in the form of records and fields.
Declaration
IRecordV2DataType RecordV2 { get; }
Property Value
| Type | Description |
|---|---|
| IRecordV2DataType | The data type for records and fields. |
Remarks
Implemented in Version 6.0.
String
Returns the data type that supports string values.
Declaration
IDataType<string> String { get; }
Property Value
| Type | Description |
|---|---|
| IDataType<System.String> | The string data type. |
Remarks
The string value is serialized as CBOR-format binary.
The data type supports binary deltas.
The data type supports null System.String instances.
Since 6.0.
Methods
Get(String)
Returns a IDataType by type name.
Declaration
IDataType Get(string typeName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | typeName | The data type name. |
Returns
| Type | Description |
|---|---|
| IDataType | The requested data type. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | There is no data type with the given name. |
Get(Type)
Returns a IDataType by value type.
Declaration
IDataType Get(Type valueType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | valueType | The value type. |
Returns
| Type | Description |
|---|---|
| IDataType | The requested data type. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | There is no data type with the given value type. |
Get<TValue>()
Returns a IDataType<TValue>.
Declaration
IDataType<TValue> Get<TValue>()
Returns
| Type | Description |
|---|---|
| IDataType<TValue> | The requested data type. |
Type Parameters
| Name | Description |
|---|---|
| TValue | The value type. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | There is no data type with the given value type. |