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
TypeNameDescription
EntityConstructionArgsargs

The entity construction arguments.

Returns
TypeDescription
IEntity

The entity.

FromEntity<T>(IEntity)

Maps an IEntity to a typed entity.

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

The entity to map.

Returns
TypeDescription
T

The typed entity.

Type Parameters
NameDescription
T

The typed entity type.

Do you have some feedback for us?

If you have suggestions for improving this article,