qalandarov/YoutubeDataKit

View on GitHub
YoutubeDataKit/YoutubeDataKit/API/Constants/SearchVideoLicense.swift

Summary

Maintainability
A
0 mins
Test Coverage
//
//  SearchVideoLicense.swift
//  YoutubeKit
//
//  Created by Ryo Ishikawa on 12/30/2017
//

/// The videoLicense parameter filters search results to only include videos with a particular license.
/// YouTube lets video uploaders choose to attach either the Creative Commons license or the standard YouTube license
/// to each of their videos. If you specify a value for this parameter,
/// you must also set the `SearchResourceType` parameter's value to video.
public enum SearchVideoLicense: String {
    
    /// Return all videos, regardless of which license they have, that match the query parameters.
    case any
    
    /// Only return videos that have a Creative Commons license.
    /// Users can reuse videos with this license in other videos that they create.
    /// For more information: https://support.google.com/youtube/answer/2797468
    case creativeCommon
    
    /// Only return videos that have the standard YouTube license.
    case youtube
}