public IEnumerable<CacheModel> PushMediaInformation(string serverKey, List<ContentModel> contentModels) { var contentService = new WsContentService(); // create the libraries contentService.EnsureLibraries(contentModels.Select(a => a.LibraryName).Distinct().ToList(), serverKey); // create media objects contentService.CreateMedia(contentModels); // assigns content to the server return contentService.UpdateContent(contentModels, serverKey); }
public void RemoveMediaInformation(string serverKey, IList<int> sourceIds) { var contentService = new WsContentService(); contentService.RemoveContent(sourceIds, serverKey); }
// ============================================= // Library Syncing Functions // ============================================= public string InitializeLocalCache(string serverKey) { var contentService = new WsContentService(); return contentService.LoadCacheFile(serverKey); }