mirror of
https://github.com/memen45/SubMusic.git
synced 2026-02-18 00:57:39 +01:00
fixes possible crash on null data response onStream fixes crash on playlist name null added abstraction of Store class (for Playlists and later Podcasts) fixes typos, deprecated code
23 lines
403 B
MonkeyC
23 lines
403 B
MonkeyC
using Toybox.System;
|
|
using Toybox.Application;
|
|
|
|
module PlaylistStore {
|
|
var d_store = new Store(Storage.PLAYLISTS);
|
|
|
|
function get(id) {
|
|
return d_store.get(id);
|
|
}
|
|
|
|
function getIds() {
|
|
return d_store.getIds();
|
|
}
|
|
|
|
function save(playlist) {
|
|
return d_store.save(playlist);
|
|
}
|
|
|
|
function remove(playlist) {
|
|
return d_store.remove(playlist);
|
|
}
|
|
}
|