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