Class TypedEntityFactoryBase
Version: 3.2
Base implementation of ITypedEntityFactory.
Inheritance
object
TypedEntityFactoryBase
Implements
Namespace: StylelabsStylelabs.MSdkFactories
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public abstract class TypedEntityFactoryBase : ITypedEntityFactoryConstructors
TypedEntityFactoryBase(IMClient)
Initializes a new instance of the TypedEntityFactoryBase class.
Declaration
RequestResponse
protected TypedEntityFactoryBase(IMClient client)Parameters
| Type | Name | Description |
|---|---|---|
| IMClient | client |
The client. |
Methods
CreateEntity(EntityConstructionArgs)
Creates a typed entity.
Declaration
RequestResponse
public abstract 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 ITypedEntity.
Declaration
RequestResponse
public T FromEntity<T>(IEntity entity) where T : ITypedEntityParameters
Returns
| Type | Description |
|---|---|
| T |
An entity of the specified type. |
Type Parameters
| Name | Description |
|---|---|
| T |
The type of the typed entity. |