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