MediaCategory.swift 2.55 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
/*****************************************************************************
 * MediaCategory.swift
 * VLC for iOS
 *****************************************************************************
 * Copyright (c) 2018 VideoLAN. All rights reserved.
 * $Id$
 *
 * Authors: Soomin Lee <bubu@mikan.io>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/

13
class VLCMovieCategoryViewController: VLCMediaCategoryViewController<VLCMLMedia, VideoModel> {
14
    init(_ services: Services) {
15 16
        let model = VideoModel(medialibrary: services.medialibraryManager)
        super.init(services: services, category: model)
17 18 19
    }
}

Soomin Lee's avatar
Soomin Lee committed
20
class VLCShowEpisodeCategoryViewController: VLCMediaCategoryViewController<MLShowEpisode, ShowEpisodeModel> {
21
    init(_ services: Services) {
Soomin Lee's avatar
Soomin Lee committed
22
        let model = ShowEpisodeModel(medialibrary: services.medialibraryManager)
23
        super.init(services: services, category: model)
24 25 26
    }
}

27
class VLCVideoPlaylistCategoryViewController: VLCMediaCategoryViewController<MLLabel, VideoModel> {
28
    init(_ services: Services) {
29 30 31
        let model = VideoModel(medialibrary: services.medialibraryManager)
        super.init(services: services, category: model)
 }
32 33
}

Soomin Lee's avatar
Soomin Lee committed
34
class VLCTrackCategoryViewController: VLCMediaCategoryViewController<VLCMLMedia, AudioModel> {
35
    init(_ services: Services) {
Soomin Lee's avatar
Soomin Lee committed
36
        let model = AudioModel(medialibrary: services.medialibraryManager)
37
        super.init(services: services, category: model)
38 39 40
    }
}

41
class VLCGenreCategoryViewController: VLCMediaCategoryViewController<String, VideoModel> {
42
    init(_ services: Services) {
43 44
        let model = VideoModel(medialibrary: services.medialibraryManager)
        super.init(services: services, category: model)
45 46 47
    }
}

48
class VLCArtistCategoryViewController: VLCMediaCategoryViewController<String, VideoModel> {
49
    init(_ services: Services) {
50 51
        let model = VideoModel(medialibrary: services.medialibraryManager)
        super.init(services: services, category: model)
52 53 54
    }
}

55
class VLCAlbumCategoryViewController: VLCMediaCategoryViewController<MLAlbum, VideoModel> {
56
    init(_ services: Services) {
57 58
        let model = VideoModel(medialibrary: services.medialibraryManager)
        super.init(services: services, category: model)
59 60 61
    }
}

62
class VLCAudioPlaylistCategoryViewController: VLCMediaCategoryViewController<MLLabel, VideoModel> {
63
    init(_ services: Services) {
64 65
        let model = VideoModel(medialibrary: services.medialibraryManager)
        super.init(services: services, category: model)
66 67
    }
}