Interface ITypedEntityFactory
Defines the typed entity factory.
Namespace: StylelabsStylelabs.MSdkFactories
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public interface ITypedEntityFactory
Methods
CreateEntity(EntityConstructionArgs)
Creates a typed entity.
Declaration
RequestResponse
IEntity CreateEntity(EntityConstructionArgs args)
Parameters
Type | Name | Description |
---|---|---|
EntityConstructionArgs | args |
The entity construction arguments. |
Returns
Type | Description |
---|---|
IEntity |
The entity. |
FromEntity<T>(IEntity)
Maps an IEntity to a typed entity.
Declaration
RequestResponse
T FromEntity<T>(IEntity entity) where T : ITypedEntity
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity |
The entity to map. |
Returns
Type | Description |
---|---|
T |
The typed entity. |
Type Parameters
Name | Description |
---|---|
T |
The typed entity type. |