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