Artemis Artemis
Artemis Artemis

Search Results for

    Interface IDataModelService

    A service that allows you to register and retrieve data models

    Namespace: Artemis.Core.Services
    Assembly: Artemis.Core.dll
    Syntax
    public interface IDataModelService

    Methods

    GetDataModel<T>()

    If found, returns the registered data model of type T

    Declaration
    T? GetDataModel<T>() where T : DataModel
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    The type of the data model to find

    GetDataModels()

    Returns a list of all registered data models

    Declaration
    List<DataModel> GetDataModels()
    Returns
    Type Description
    List<DataModel>

    GetPluginDataModel(PluginFeature)

    If found, returns the data model of the provided plugin

    Declaration
    DataModel? GetPluginDataModel(PluginFeature pluginFeature)
    Parameters
    Type Name Description
    PluginFeature pluginFeature

    The plugin to find the data model of

    Returns
    Type Description
    DataModel

    RegisterDataModel(DataModel)

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

    Declaration
    DataModelRegistration RegisterDataModel(DataModel dataModel)
    Parameters
    Type Name Description
    DataModel dataModel
    Returns
    Type Description
    DataModelRegistration

    RemoveDataModel(DataModelRegistration)

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

    Declaration
    void RemoveDataModel(DataModelRegistration registration)
    Parameters
    Type Name Description
    DataModelRegistration registration
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.