Class TypedEntityFactoryBase

Base implementation of ITypedEntityFactory.

Inheritance
object
TypedEntityFactoryBase
Implements
Namespace: StylelabsStylelabs.MSdkFactories
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public abstract class TypedEntityFactoryBase : ITypedEntityFactory

Constructors

TypedEntityFactoryBase(IMClient)

Initializes a new instance of the TypedEntityFactoryBase class.

Declaration
RequestResponse
protected TypedEntityFactoryBase(IMClient client)
Parameters
TypeNameDescription
IMClientclient

The client.

Methods

CreateEntity(EntityConstructionArgs)

Creates a typed entity.

Declaration
RequestResponse
public abstract IEntity CreateEntity(EntityConstructionArgs args)
Parameters
TypeNameDescription
EntityConstructionArgsargs

The entity construction arguments.

Returns
TypeDescription
IEntity

The entity.

FromEntity<T>(IEntity)

Maps an IEntity to a ITypedEntity.

Declaration
RequestResponse
public T FromEntity<T>(IEntity entity) where T : ITypedEntity
Parameters
TypeNameDescription
IEntityentity

The IEntity.

Returns
TypeDescription
T

An entity of the specified type.

Type Parameters
NameDescription
T

The type of the typed entity.

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,