/* 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 { TrackStatus } from './TrackStatus'; import { TrackStatusFromJSON, TrackStatusFromJSONTyped, TrackStatusToJSON, TrackStatusToJSONTyped, } from './TrackStatus'; /** * * @export * @interface TrackIndexResponseData */ export interface TrackIndexResponseData { /** * * @type {number} * @memberof TrackIndexResponseData */ trackId?: number; /** * * @type {string} * @memberof TrackIndexResponseData */ name?: string | null; /** * * @type {string} * @memberof TrackIndexResponseData */ title?: string | null; /** * * @type {string} * @memberof TrackIndexResponseData */ album?: string | null; /** * * @type {TrackStatus} * @memberof TrackIndexResponseData */ status?: TrackStatus; /** * * @type {string} * @memberof TrackIndexResponseData */ artist?: string | null; /** * * @type {string} * @memberof TrackIndexResponseData */ isrc?: string | null; /** * * @type {string} * @memberof TrackIndexResponseData */ year?: string | null; /** * * @type {string} * @memberof TrackIndexResponseData */ audioFile?: string | null; /** * * @type {string} * @memberof TrackIndexResponseData */ duration?: string; /** * * @type {number} * @memberof TrackIndexResponseData */ ownerId?: number; /** * * @type {string} * @memberof TrackIndexResponseData */ ownerName?: string | null; /** * * @type {string} * @memberof TrackIndexResponseData */ ownerContainer?: string | null; /** * * @type {number} * @memberof TrackIndexResponseData */ rating?: number; /** * * @type {boolean} * @memberof TrackIndexResponseData */ publication?: boolean; /** * * @type {boolean} * @memberof TrackIndexResponseData */ cancel?: boolean; /** * * @type {Date} * @memberof TrackIndexResponseData */ cancelDate?: Date | null; /** * * @type {string} * @memberof TrackIndexResponseData */ fileHash?: string | null; /** * * @type {Date} * @memberof TrackIndexResponseData */ createDate?: Date; /** * * @type {Date} * @memberof TrackIndexResponseData */ changeDate?: Date | null; /** * * @type {Array} * @memberof TrackIndexResponseData */ companyTypeTracks?: Array | null; /** * * @type {Array} * @memberof TrackIndexResponseData */ genreTracks?: Array | null; /** * * @type {string} * @memberof TrackIndexResponseData */ readonly genreTracksString?: string | null; /** * * @type {string} * @memberof TrackIndexResponseData */ readonly imageFile?: string | null; } /** * Check if a given object implements the TrackIndexResponseData interface. */ export function instanceOfTrackIndexResponseData(value: object): value is TrackIndexResponseData { return true; } export function TrackIndexResponseDataFromJSON(json: any): TrackIndexResponseData { return TrackIndexResponseDataFromJSONTyped(json, false); } export function TrackIndexResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrackIndexResponseData { if (json == null) { return json; } return { 'trackId': json['TrackId'] == null ? undefined : json['TrackId'], 'name': json['Name'] == null ? undefined : json['Name'], 'title': json['Title'] == null ? undefined : json['Title'], 'album': json['Album'] == null ? undefined : json['Album'], 'status': json['Status'] == null ? undefined : TrackStatusFromJSON(json['Status']), 'artist': json['Artist'] == null ? undefined : json['Artist'], 'isrc': json['Isrc'] == null ? undefined : json['Isrc'], 'year': json['Year'] == null ? undefined : json['Year'], 'audioFile': json['AudioFile'] == null ? undefined : json['AudioFile'], 'duration': json['Duration'] == null ? undefined : json['Duration'], 'ownerId': json['OwnerId'] == null ? undefined : json['OwnerId'], 'ownerName': json['OwnerName'] == null ? undefined : json['OwnerName'], 'ownerContainer': json['OwnerContainer'] == null ? undefined : json['OwnerContainer'], 'rating': json['Rating'] == null ? undefined : json['Rating'], 'publication': json['Publication'] == null ? undefined : json['Publication'], 'cancel': json['Cancel'] == null ? undefined : json['Cancel'], 'cancelDate': json['CancelDate'] == null ? undefined : (new Date(json['CancelDate'])), 'fileHash': json['FileHash'] == null ? undefined : json['FileHash'], 'createDate': json['CreateDate'] == null ? undefined : (new Date(json['CreateDate'])), 'changeDate': json['ChangeDate'] == null ? undefined : (new Date(json['ChangeDate'])), 'companyTypeTracks': json['CompanyTypeTracks'] == null ? undefined : json['CompanyTypeTracks'], 'genreTracks': json['GenreTracks'] == null ? undefined : json['GenreTracks'], 'genreTracksString': json['GenreTracksString'] == null ? undefined : json['GenreTracksString'], 'imageFile': json['ImageFile'] == null ? undefined : json['ImageFile'], }; } export function TrackIndexResponseDataToJSON(json: any): TrackIndexResponseData { return TrackIndexResponseDataToJSONTyped(json, false); } export function TrackIndexResponseDataToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'TrackId': value['trackId'], 'Name': value['name'], 'Title': value['title'], 'Album': value['album'], 'Status': TrackStatusToJSON(value['status']), 'Artist': value['artist'], 'Isrc': value['isrc'], 'Year': value['year'], 'AudioFile': value['audioFile'], 'Duration': value['duration'], 'OwnerId': value['ownerId'], 'OwnerName': value['ownerName'], 'OwnerContainer': value['ownerContainer'], 'Rating': value['rating'], 'Publication': value['publication'], 'Cancel': value['cancel'], 'CancelDate': value['cancelDate'] == null ? undefined : ((value['cancelDate'] as any).toISOString()), 'FileHash': value['fileHash'], 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()), 'ChangeDate': value['changeDate'] == null ? undefined : ((value['changeDate'] as any).toISOString()), 'CompanyTypeTracks': value['companyTypeTracks'], 'GenreTracks': value['genreTracks'], }; }