UNPKG

streaming-availability

Version:

Streaming Availability API allows getting streaming availability information of movies and series; and querying the list of available shows on streaming services such as Netflix, Disney+, Apple TV, Max and Hulu across 60 countries!

105 lines (95 loc) 2.81 kB
/* tslint:disable */ /* eslint-disable */ /** * Streaming Availability API * Streaming Availability API allows getting streaming availability information of movies and series; and querying the list of available shows on streaming services such as Netflix, Disney+, Apple TV, Max and Hulu across 60 countries! * * The version of the OpenAPI document: 4.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { ServiceImageSet } from './ServiceImageSet'; import { ServiceImageSetFromJSON, ServiceImageSetFromJSONTyped, ServiceImageSetToJSON, } from './ServiceImageSet'; /** * Details of the streaming service localized according to the parent country. * @export * @interface ServiceInfo */ export interface ServiceInfo { /** * Id of the service. * @type {string} * @memberof ServiceInfo */ id: string; /** * Name of the service. * @type {string} * @memberof ServiceInfo */ name: string; /** * Link to the homepage of the service. * @type {string} * @memberof ServiceInfo */ homePage: string; /** * Associated theme color hex code of the service. * @type {string} * @memberof ServiceInfo */ themeColorCode: string; /** * Image set of the service. * @type {ServiceImageSet} * @memberof ServiceInfo */ imageSet: ServiceImageSet; } /** * Check if a given object implements the ServiceInfo interface. */ export function instanceOfServiceInfo(value: object): boolean { if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('homePage' in value)) return false; if (!('themeColorCode' in value)) return false; if (!('imageSet' in value)) return false; return true; } export function ServiceInfoFromJSON(json: any): ServiceInfo { return ServiceInfoFromJSONTyped(json, false); } export function ServiceInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceInfo { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'homePage': json['homePage'], 'themeColorCode': json['themeColorCode'], 'imageSet': ServiceImageSetFromJSON(json['imageSet']), }; } export function ServiceInfoToJSON(value?: ServiceInfo | null): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'homePage': value['homePage'], 'themeColorCode': value['themeColorCode'], 'imageSet': ServiceImageSetToJSON(value['imageSet']), }; }