Table of Contents

Interface IDataModelService

Namespace
Artemis.Core.Services
Assembly
Artemis.Core.dll

A service that allows you to register and retrieve data models

public interface IDataModelService

Methods

GetDataModel<T>()

If found, returns the registered data model of type T

T? GetDataModel<T>() where T : DataModel

Returns

T

Type Parameters

T

The type of the data model to find

GetDataModels()

Returns a list of all registered data models

List<DataModel> GetDataModels()

Returns

List<DataModel>

GetPluginDataModel(PluginFeature)

If found, returns the data model of the provided plugin

DataModel? GetPluginDataModel(PluginFeature pluginFeature)

Parameters

pluginFeature PluginFeature

The plugin to find the data model of

Returns

DataModel

RegisterDataModel(DataModel)

Add a data model to so that it is available to conditions and data bindings

DataModelRegistration RegisterDataModel(DataModel dataModel)

Parameters

dataModel DataModel

Returns

DataModelRegistration

RemoveDataModel(DataModelRegistration)

Remove a previously added data model so that it is no longer available

void RemoveDataModel(DataModelRegistration registration)

Parameters

registration DataModelRegistration