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