Files
SubMusic/source/Store/NowPlayingStore.mc
memen45 d347197e98 added app storage info in settings
moved menu location of settings and about info
2022-12-26 22:15:45 +01:00

26 lines
577 B
MonkeyC

using Toybox.Application;
using Toybox.System;
using SubMusic.Storage;
module SubMusic {
module PlayableStore {
var d_store = new Store(Storage.PLAYABLE, {});
function get() {
return d_store.value();
}
// these functions should be used only internally by IPlayable class
function save(playable) {
d_store.setValue(playable.toStorage());
return d_store.update();
}
function remove() {
d_store.setValue(null);
return d_store.update();
}
}
}