/* 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 { PlaylistGetGenre } from './PlaylistGetGenre'; import { PlaylistGetGenreFromJSON, PlaylistGetGenreFromJSONTyped, PlaylistGetGenreToJSON, PlaylistGetGenreToJSONTyped, } from './PlaylistGetGenre'; import type { TimeOfDay } from './TimeOfDay'; import { TimeOfDayFromJSON, TimeOfDayFromJSONTyped, TimeOfDayToJSON, TimeOfDayToJSONTyped, } from './TimeOfDay'; import type { PlaylistGetCompany } from './PlaylistGetCompany'; import { PlaylistGetCompanyFromJSON, PlaylistGetCompanyFromJSONTyped, PlaylistGetCompanyToJSON, PlaylistGetCompanyToJSONTyped, } from './PlaylistGetCompany'; import type { TrackPublishedGetResponse } from './TrackPublishedGetResponse'; import { TrackPublishedGetResponseFromJSON, TrackPublishedGetResponseFromJSONTyped, TrackPublishedGetResponseToJSON, TrackPublishedGetResponseToJSONTyped, } from './TrackPublishedGetResponse'; import type { ArchivePlaylist } from './ArchivePlaylist'; import { ArchivePlaylistFromJSON, ArchivePlaylistFromJSONTyped, ArchivePlaylistToJSON, ArchivePlaylistToJSONTyped, } from './ArchivePlaylist'; /** * * @export * @interface PlaylistGetResponse */ export interface PlaylistGetResponse { /** * * @type {number} * @memberof PlaylistGetResponse */ playListId?: number; /** * * @type {string} * @memberof PlaylistGetResponse */ userId?: string | null; /** * * @type {string} * @memberof PlaylistGetResponse */ userName?: string | null; /** * * @type {string} * @memberof PlaylistGetResponse */ name?: string | null; /** * * @type {string} * @memberof PlaylistGetResponse */ imageFile?: string | null; /** * * @type {number} * @memberof PlaylistGetResponse */ count?: number; /** * * @type {TimeOfDay} * @memberof PlaylistGetResponse */ timeOfDay?: TimeOfDay; /** * * @type {string} * @memberof PlaylistGetResponse */ duration?: string; /** * * @type {boolean} * @memberof PlaylistGetResponse */ download?: boolean; /** * * @type {number} * @memberof PlaylistGetResponse */ rating?: number; /** * * @type {Date} * @memberof PlaylistGetResponse */ createDate?: Date; /** * * @type {Date} * @memberof PlaylistGetResponse */ changeDate?: Date; /** * * @type {ArchivePlaylist} * @memberof PlaylistGetResponse */ archivePlaylist?: ArchivePlaylist; /** * * @type {Array} * @memberof PlaylistGetResponse */ companyTypePlaylists?: Array | null; /** * * @type {Array} * @memberof PlaylistGetResponse */ genrePlaylists?: Array | null; /** * * @type {Array} * @memberof PlaylistGetResponse */ trackPlayLists?: Array | null; } /** * Check if a given object implements the PlaylistGetResponse interface. */ export function instanceOfPlaylistGetResponse(value: object): value is PlaylistGetResponse { return true; } export function PlaylistGetResponseFromJSON(json: any): PlaylistGetResponse { return PlaylistGetResponseFromJSONTyped(json, false); } export function PlaylistGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaylistGetResponse { if (json == null) { return json; } return { 'playListId': json['PlayListId'] == null ? undefined : json['PlayListId'], 'userId': json['UserId'] == null ? undefined : json['UserId'], 'userName': json['UserName'] == null ? undefined : json['UserName'], 'name': json['Name'] == null ? undefined : json['Name'], 'imageFile': json['ImageFile'] == null ? undefined : json['ImageFile'], 'count': json['Count'] == null ? undefined : json['Count'], 'timeOfDay': json['TimeOfDay'] == null ? undefined : TimeOfDayFromJSON(json['TimeOfDay']), 'duration': json['Duration'] == null ? undefined : json['Duration'], 'download': json['Download'] == null ? undefined : json['Download'], 'rating': json['Rating'] == null ? undefined : json['Rating'], 'createDate': json['CreateDate'] == null ? undefined : (new Date(json['CreateDate'])), 'changeDate': json['ChangeDate'] == null ? undefined : (new Date(json['ChangeDate'])), 'archivePlaylist': json['ArchivePlaylist'] == null ? undefined : ArchivePlaylistFromJSON(json['ArchivePlaylist']), 'companyTypePlaylists': json['CompanyTypePlaylists'] == null ? undefined : ((json['CompanyTypePlaylists'] as Array).map(PlaylistGetCompanyFromJSON)), 'genrePlaylists': json['GenrePlaylists'] == null ? undefined : ((json['GenrePlaylists'] as Array).map(PlaylistGetGenreFromJSON)), 'trackPlayLists': json['TrackPlayLists'] == null ? undefined : ((json['TrackPlayLists'] as Array).map(TrackPublishedGetResponseFromJSON)), }; } export function PlaylistGetResponseToJSON(json: any): PlaylistGetResponse { return PlaylistGetResponseToJSONTyped(json, false); } export function PlaylistGetResponseToJSONTyped(value?: PlaylistGetResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'PlayListId': value['playListId'], 'UserId': value['userId'], 'UserName': value['userName'], 'Name': value['name'], 'ImageFile': value['imageFile'], 'Count': value['count'], 'TimeOfDay': TimeOfDayToJSON(value['timeOfDay']), 'Duration': value['duration'], 'Download': value['download'], 'Rating': value['rating'], 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()), 'ChangeDate': value['changeDate'] == null ? undefined : ((value['changeDate']).toISOString()), 'ArchivePlaylist': ArchivePlaylistToJSON(value['archivePlaylist']), 'CompanyTypePlaylists': value['companyTypePlaylists'] == null ? undefined : ((value['companyTypePlaylists'] as Array).map(PlaylistGetCompanyToJSON)), 'GenrePlaylists': value['genrePlaylists'] == null ? undefined : ((value['genrePlaylists'] as Array).map(PlaylistGetGenreToJSON)), 'TrackPlayLists': value['trackPlayLists'] == null ? undefined : ((value['trackPlayLists'] as Array).map(TrackPublishedGetResponseToJSON)), }; }