2016-08-06 19:56:32 -07:00
|
|
|
|
define([], function () {
|
2015-06-02 22:30:14 -07:00
|
|
|
|
|
|
|
|
|
function getLocalMediaSource(serverId, itemId) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve(null);
|
2015-06-02 22:30:14 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-10 11:28:22 -07:00
|
|
|
|
function saveOfflineUser(user) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve();
|
2015-09-10 11:28:22 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-15 20:55:26 -07:00
|
|
|
|
function deleteOfflineUser(id) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve();
|
2015-09-15 20:55:26 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-10 11:28:22 -07:00
|
|
|
|
function getCameraPhotos() {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve([]);
|
2015-09-10 11:28:22 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-14 12:47:03 -07:00
|
|
|
|
function getOfflineActions(serverId) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve([]);
|
2015-09-14 12:47:03 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-15 20:55:26 -07:00
|
|
|
|
function deleteOfflineActions(actions) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve([]);
|
2015-09-15 20:55:26 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-14 12:47:03 -07:00
|
|
|
|
function getServerItemIds(serverId) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve([]);
|
2015-09-14 12:47:03 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function removeLocalItem(itemId, serverId) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve();
|
2015-09-14 12:47:03 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getLocalItem(itemId, serverId) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve();
|
2015-09-14 12:47:03 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function addOrUpdateLocalItem(localItem) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve();
|
2015-09-14 12:47:03 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-14 21:31:12 -07:00
|
|
|
|
function createLocalItem(libraryItem, serverInfo, originalFileName) {
|
2015-09-14 14:24:54 -07:00
|
|
|
|
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve({});
|
2015-09-14 14:24:54 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function downloadFile(url, localPath) {
|
|
|
|
|
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve();
|
2015-09-14 14:24:54 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function downloadSubtitles(url, localItem, subtitleStreamh) {
|
|
|
|
|
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve('');
|
2015-09-14 14:24:54 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-14 18:16:31 -07:00
|
|
|
|
function hasImage(serverId, itemId, imageTag) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve(false);
|
2015-09-14 18:16:31 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function downloadImage(url, serverId, itemId, imageTag) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve(false);
|
2015-09-14 18:16:31 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-20 09:16:06 -07:00
|
|
|
|
function fileExists(path) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve(false);
|
2015-09-20 09:16:06 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-21 08:43:10 -07:00
|
|
|
|
function translateFilePath(path) {
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return Promise.resolve(path);
|
2015-09-21 08:43:10 -07:00
|
|
|
|
}
|
|
|
|
|
|
2016-08-06 19:56:32 -07:00
|
|
|
|
return {
|
2015-09-10 11:28:22 -07:00
|
|
|
|
getLocalMediaSource: getLocalMediaSource,
|
|
|
|
|
saveOfflineUser: saveOfflineUser,
|
2015-09-15 20:55:26 -07:00
|
|
|
|
deleteOfflineUser: deleteOfflineUser,
|
2015-09-14 12:47:03 -07:00
|
|
|
|
getCameraPhotos: getCameraPhotos,
|
|
|
|
|
getOfflineActions: getOfflineActions,
|
2015-09-15 20:55:26 -07:00
|
|
|
|
deleteOfflineActions: deleteOfflineActions,
|
2015-09-14 12:47:03 -07:00
|
|
|
|
getServerItemIds: getServerItemIds,
|
|
|
|
|
removeLocalItem: removeLocalItem,
|
|
|
|
|
getLocalItem: getLocalItem,
|
2015-09-14 14:24:54 -07:00
|
|
|
|
addOrUpdateLocalItem: addOrUpdateLocalItem,
|
|
|
|
|
createLocalItem: createLocalItem,
|
|
|
|
|
downloadFile: downloadFile,
|
2015-09-14 18:16:31 -07:00
|
|
|
|
downloadSubtitles: downloadSubtitles,
|
|
|
|
|
hasImage: hasImage,
|
2015-09-20 09:16:06 -07:00
|
|
|
|
downloadImage: downloadImage,
|
2015-09-21 08:43:10 -07:00
|
|
|
|
fileExists: fileExists,
|
|
|
|
|
translateFilePath: translateFilePath
|
2015-06-02 22:30:14 -07:00
|
|
|
|
};
|
2016-08-06 19:56:32 -07:00
|
|
|
|
});
|