/* 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 { TimeOfDay } from './TimeOfDay'; import { TimeOfDayFromJSON, TimeOfDayFromJSONTyped, TimeOfDayToJSON, TimeOfDayToJSONTyped, } from './TimeOfDay'; import type { FeedPlaylistPlayTrack } from './FeedPlaylistPlayTrack'; import { FeedPlaylistPlayTrackFromJSON, FeedPlaylistPlayTrackFromJSONTyped, FeedPlaylistPlayTrackToJSON, FeedPlaylistPlayTrackToJSONTyped, } from './FeedPlaylistPlayTrack'; /** * * @export * @interface FeedPlaylistPlayResponse */ export interface FeedPlaylistPlayResponse { /** * * @type {number} * @memberof FeedPlaylistPlayResponse */ playListId?: number; /** * * @type {string} * @memberof FeedPlaylistPlayResponse */ name?: string | null; /** * * @type {boolean} * @memberof FeedPlaylistPlayResponse */ shuffle?: boolean; /** * * @type {boolean} * @memberof FeedPlaylistPlayResponse */ active?: boolean; /** * * @type {number} * @memberof FeedPlaylistPlayResponse */ count?: number; /** * * @type {string} * @memberof FeedPlaylistPlayResponse */ duration?: string; /** * * @type {TimeOfDay} * @memberof FeedPlaylistPlayResponse */ timeOfDay?: TimeOfDay; /** * * @type {Array} * @memberof FeedPlaylistPlayResponse */ tracks?: Array | null; } /** * Check if a given object implements the FeedPlaylistPlayResponse interface. */ export function instanceOfFeedPlaylistPlayResponse(value: object): value is FeedPlaylistPlayResponse { return true; } export function FeedPlaylistPlayResponseFromJSON(json: any): FeedPlaylistPlayResponse { return FeedPlaylistPlayResponseFromJSONTyped(json, false); } export function FeedPlaylistPlayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedPlaylistPlayResponse { if (json == null) { return json; } return { 'playListId': json['PlayListId'] == null ? undefined : json['PlayListId'], 'name': json['Name'] == null ? undefined : json['Name'], 'shuffle': json['Shuffle'] == null ? undefined : json['Shuffle'], 'active': json['Active'] == null ? undefined : json['Active'], 'count': json['Count'] == null ? undefined : json['Count'], 'duration': json['Duration'] == null ? undefined : json['Duration'], 'timeOfDay': json['TimeOfDay'] == null ? undefined : TimeOfDayFromJSON(json['TimeOfDay']), 'tracks': json['Tracks'] == null ? undefined : ((json['Tracks'] as Array).map(FeedPlaylistPlayTrackFromJSON)), }; } export function FeedPlaylistPlayResponseToJSON(json: any): FeedPlaylistPlayResponse { return FeedPlaylistPlayResponseToJSONTyped(json, false); } export function FeedPlaylistPlayResponseToJSONTyped(value?: FeedPlaylistPlayResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'PlayListId': value['playListId'], 'Name': value['name'], 'Shuffle': value['shuffle'], 'Active': value['active'], 'Count': value['count'], 'Duration': value['duration'], 'TimeOfDay': TimeOfDayToJSON(value['timeOfDay']), 'Tracks': value['tracks'] == null ? undefined : ((value['tracks'] as Array).map(FeedPlaylistPlayTrackToJSON)), }; }