* Use AppService for Commnunication instead of WebSocket * Code cleanup * Some polishing * Added some tests
19 lines
437 B
C#
19 lines
437 B
C#
using System.Collections.Generic;
|
|
|
|
namespace FluentTerminal.App.Services
|
|
{
|
|
public interface IApplicationDataContainer
|
|
{
|
|
T ReadValueFromJson<T>(string name, T fallbackValue);
|
|
|
|
void WriteValueAsJson<T>(string name, T value);
|
|
|
|
bool TryGetValue(string key, out object value);
|
|
|
|
void SetValue(string key, object value);
|
|
|
|
void Delete(string key);
|
|
|
|
IEnumerable<object> GetAll();
|
|
}
|
|
} |