/* Copyright (c) 2016 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

//
//  GTLYouTubeVideoContentDetails.h
//

// ----------------------------------------------------------------------------
// NOTE: This file is generated from Google APIs Discovery Service.
// Service:
//   YouTube Data API (youtube/v3)
// Description:
//   Supports core YouTube features, such as uploading videos, creating and
//   managing playlists, searching for content, and much more.
// Documentation:
//   https://developers.google.com/youtube/v3
// Classes:
//   GTLYouTubeVideoContentDetails (0 custom class methods, 8 custom properties)

#if GTL_BUILT_AS_FRAMEWORK
  #import "GTL/GTLObject.h"
#else
  #import "GTLObject.h"
#endif

@class GTLYouTubeAccessPolicy;
@class GTLYouTubeContentRating;
@class GTLYouTubeVideoContentDetailsRegionRestriction;

// ----------------------------------------------------------------------------
//
//   GTLYouTubeVideoContentDetails
//

// Details about the content of a YouTube Video.

@interface GTLYouTubeVideoContentDetails : GTLObject

// The value of captions indicates whether the video has captions or not.
@property (nonatomic, copy) NSString *caption;

// Specifies the ratings that the video received under various rating schemes.
@property (nonatomic, retain) GTLYouTubeContentRating *contentRating;

// The countryRestriction object contains information about the countries where
// a video is (or is not) viewable.
@property (nonatomic, retain) GTLYouTubeAccessPolicy *countryRestriction;

// The value of definition indicates whether the video is available in high
// definition or only in standard definition.
@property (nonatomic, copy) NSString *definition;

// The value of dimension indicates whether the video is available in 3D or in
// 2D.
@property (nonatomic, copy) NSString *dimension;

// The length of the video. The tag value is an ISO 8601 duration in the format
// PT#M#S, in which the letters PT indicate that the value specifies a period of
// time, and the letters M and S refer to length in minutes and seconds,
// respectively. The # characters preceding the M and S letters are both
// integers that specify the number of minutes (or seconds) of the video. For
// example, a value of PT15M51S indicates that the video is 15 minutes and 51
// seconds long.
@property (nonatomic, copy) NSString *duration;

// The value of is_license_content indicates whether the video is licensed
// content.
@property (nonatomic, retain) NSNumber *licensedContent;  // boolValue

// The regionRestriction object contains information about the countries where a
// video is (or is not) viewable. The object will contain either the
// contentDetails.regionRestriction.allowed property or the
// contentDetails.regionRestriction.blocked property.
@property (nonatomic, retain) GTLYouTubeVideoContentDetailsRegionRestriction *regionRestriction;

@end
