MediaCategory.swift 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*****************************************************************************
  2. * MediaCategory.swift
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2018 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Soomin Lee <bubu@mikan.io>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. class VLCMovieCategoryViewController: VLCMediaCategoryViewController<VLCMLMedia, VideoModel> {
  13. init(_ services: Services) {
  14. let model = VideoModel(medialibrary: services.medialibraryManager)
  15. super.init(services: services, category: model)
  16. }
  17. }
  18. class VLCShowEpisodeCategoryViewController: VLCMediaCategoryViewController<MLShowEpisode, VideoModel> {
  19. init(_ services: Services) {
  20. let model = VideoModel(medialibrary: services.medialibraryManager)
  21. super.init(services: services, category: model)
  22. }
  23. }
  24. class VLCVideoPlaylistCategoryViewController: VLCMediaCategoryViewController<MLLabel, VideoModel> {
  25. init(_ services: Services) {
  26. let model = VideoModel(medialibrary: services.medialibraryManager)
  27. super.init(services: services, category: model)
  28. }
  29. }
  30. class VLCTrackCategoryViewController: VLCMediaCategoryViewController<MLFile, VideoModel> {
  31. init(_ services: Services) {
  32. let model = VideoModel(medialibrary: services.medialibraryManager)
  33. super.init(services: services, category: model)
  34. }
  35. }
  36. class VLCGenreCategoryViewController: VLCMediaCategoryViewController<String, VideoModel> {
  37. init(_ services: Services) {
  38. let model = VideoModel(medialibrary: services.medialibraryManager)
  39. super.init(services: services, category: model)
  40. }
  41. }
  42. class VLCArtistCategoryViewController: VLCMediaCategoryViewController<String, VideoModel> {
  43. init(_ services: Services) {
  44. let model = VideoModel(medialibrary: services.medialibraryManager)
  45. super.init(services: services, category: model)
  46. }
  47. }
  48. class VLCAlbumCategoryViewController: VLCMediaCategoryViewController<MLAlbum, VideoModel> {
  49. init(_ services: Services) {
  50. let model = VideoModel(medialibrary: services.medialibraryManager)
  51. super.init(services: services, category: model)
  52. }
  53. }
  54. class VLCAudioPlaylistCategoryViewController: VLCMediaCategoryViewController<MLLabel, VideoModel> {
  55. init(_ services: Services) {
  56. let model = VideoModel(medialibrary: services.medialibraryManager)
  57. super.init(services: services, category: model)
  58. }
  59. }