Class TelemetryMapper
Represents a mapper that converts objects between Telemetry and "TelemetryResource".
Namespace: Unity.DigitalTwins.Live.Sdk.Mappers
Assembly: solution.dll
Syntax
public static class TelemetryMapper
Methods
ToClientModel(Telemetry)
Gets a "TelemetryResource" by converting a Telemetry.
Declaration
public static TelemetryResource ToClientModel(this Telemetry obj)
Parameters
Type | Name | Description |
---|---|---|
Telemetry | obj | The converting source. |
Returns
Type | Description |
---|---|
TelemetryResource | The converted result. |
ToServiceModel(TelemetryResource)
Gets a Telemetry by converting a "TelemetryResource".
Declaration
public static Telemetry ToServiceModel(this TelemetryResource obj)
Parameters
Type | Name | Description |
---|---|---|
TelemetryResource | obj | The converting source. |
Returns
Type | Description |
---|---|
Telemetry | The converted result. |