/* tslint:disable */ /* eslint-disable */ /** * Mubicon v1 API * Api with Swagger, Swashbuckle, and Manual API versioning. * * The version of the OpenAPI document: 1 * Contact: support@mubicloud.com * * 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 { CalendarDay } from './CalendarDay'; import { CalendarDayFromJSON, CalendarDayFromJSONTyped, CalendarDayToJSON, CalendarDayToJSONTyped, } from './CalendarDay'; import type { FeedPlaylistPlayResponse } from './FeedPlaylistPlayResponse'; import { FeedPlaylistPlayResponseFromJSON, FeedPlaylistPlayResponseFromJSONTyped, FeedPlaylistPlayResponseToJSON, FeedPlaylistPlayResponseToJSONTyped, } from './FeedPlaylistPlayResponse'; /** * * @export * @interface FeedPlayResponse */ export interface FeedPlayResponse { /** * * @type {number} * @memberof FeedPlayResponse */ feedId?: number; /** * * @type {Date} * @memberof FeedPlayResponse */ createDate?: Date; /** * * @type {Date} * @memberof FeedPlayResponse */ changeDate?: Date; /** * * @type {CalendarDay} * @memberof FeedPlayResponse */ calendarDay?: CalendarDay; /** * * @type {Date} * @memberof FeedPlayResponse */ calendarDate?: Date | null; /** * * @type {Array} * @memberof FeedPlayResponse */ playlists?: Array | null; /** * * @type {string} * @memberof FeedPlayResponse */ name?: string | null; } /** * Check if a given object implements the FeedPlayResponse interface. */ export function instanceOfFeedPlayResponse(value: object): value is FeedPlayResponse { return true; } export function FeedPlayResponseFromJSON(json: any): FeedPlayResponse { return FeedPlayResponseFromJSONTyped(json, false); } export function FeedPlayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedPlayResponse { if (json == null) { return json; } return { 'feedId': json['FeedId'] == null ? undefined : json['FeedId'], 'createDate': json['CreateDate'] == null ? undefined : (new Date(json['CreateDate'])), 'changeDate': json['ChangeDate'] == null ? undefined : (new Date(json['ChangeDate'])), 'calendarDay': json['CalendarDay'] == null ? undefined : CalendarDayFromJSON(json['CalendarDay']), 'calendarDate': json['CalendarDate'] == null ? undefined : (new Date(json['CalendarDate'])), 'playlists': json['Playlists'] == null ? undefined : ((json['Playlists'] as Array).map(FeedPlaylistPlayResponseFromJSON)), 'name': json['Name'] == null ? undefined : json['Name'], }; } export function FeedPlayResponseToJSON(json: any): FeedPlayResponse { return FeedPlayResponseToJSONTyped(json, false); } export function FeedPlayResponseToJSONTyped(value?: FeedPlayResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'FeedId': value['feedId'], 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()), 'ChangeDate': value['changeDate'] == null ? undefined : ((value['changeDate']).toISOString()), 'CalendarDay': CalendarDayToJSON(value['calendarDay']), 'CalendarDate': value['calendarDate'] == null ? undefined : ((value['calendarDate'] as any).toISOString()), 'Playlists': value['playlists'] == null ? undefined : ((value['playlists'] as Array).map(FeedPlaylistPlayResponseToJSON)), 'Name': value['name'], }; }