mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Display conditions - Added docs to the service and profile types Color gradient - Added docs Storage - Moved profile entities to separate namespaces Data bindings - Added entities to storage Data bindings - Started implementing in the core
51 lines
2.3 KiB
C#
51 lines
2.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Artemis.Core.Annotations;
|
|
using Artemis.Core.Models.Profile.DataBindings;
|
|
using Artemis.Core.Models.Profile.DataBindings.Modifiers;
|
|
using Artemis.Core.Plugins;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Artemis.Core.Services.Interfaces
|
|
{
|
|
public interface IDataBindingService : IArtemisService
|
|
{
|
|
/// <summary>
|
|
/// Gets a read-only collection of all registered modifier types
|
|
/// </summary>
|
|
IReadOnlyCollection<DataBindingModifierType> RegisteredDataBindingModifierTypes { get; }
|
|
|
|
/// <summary>
|
|
/// Registers a new modifier type for use in data bindings
|
|
/// </summary>
|
|
/// <param name="pluginInfo">The PluginInfo of the plugin this modifier type belongs to</param>
|
|
/// <param name="dataBindingModifierType">The modifier type to register</param>
|
|
void RegisterModifierType([NotNull] PluginInfo pluginInfo, [NotNull] DataBindingModifierType dataBindingModifierType);
|
|
|
|
/// <summary>
|
|
/// Removes a modifier type so it is no longer available for use in data bindings
|
|
/// </summary>
|
|
/// <param name="dataBindingModifierType">The modifier type to remove</param>
|
|
void RemoveModifierType([NotNull] DataBindingModifierType dataBindingModifierType);
|
|
|
|
/// <summary>
|
|
/// Returns all the data binding modifier types compatible with the provided type
|
|
/// </summary>
|
|
List<DataBindingModifierType> GetCompatibleModifierTypes(Type type);
|
|
|
|
/// <summary>
|
|
/// Gets a modifier type by its plugin GUID and type name
|
|
/// </summary>
|
|
/// <param name="modifierTypePluginGuid">The modifier type's plugin GUID</param>
|
|
/// <param name="modifierType">The type name of the modifier type</param>
|
|
/// <returns></returns>
|
|
DataBindingModifierType GetModifierType(Guid modifierTypePluginGuid, string modifierType);
|
|
|
|
/// <summary>
|
|
/// Logs a modifier deserialization failure
|
|
/// </summary>
|
|
/// <param name="dataBindingModifier">The modifier that failed to deserialize</param>
|
|
/// <param name="exception">The JSON exception that occurred</param>
|
|
void LogModifierDeserializationFailure(DataBindingModifier dataBindingModifier, JsonSerializationException exception);
|
|
}
|
|
} |