/* 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'; /** * * @export * @interface SelectionGetResponse */ export interface SelectionGetResponse { /** * * @type {number} * @memberof SelectionGetResponse */ selectionId?: number; /** * * @type {string} * @memberof SelectionGetResponse */ userId?: string | null; /** * * @type {string} * @memberof SelectionGetResponse */ userName?: string | null; /** * * @type {string} * @memberof SelectionGetResponse */ name?: string | null; /** * * @type {number} * @memberof SelectionGetResponse */ rating?: number; /** * * @type {boolean} * @memberof SelectionGetResponse */ random?: boolean; /** * * @type {string} * @memberof SelectionGetResponse */ imageFile?: string | null; /** * * @type {number} * @memberof SelectionGetResponse */ count?: number; /** * * @type {string} * @memberof SelectionGetResponse */ description?: string | null; /** * * @type {TimeOfDay} * @memberof SelectionGetResponse */ timeOfDay?: TimeOfDay; /** * * @type {string} * @memberof SelectionGetResponse */ duration?: string; /** * * @type {Date} * @memberof SelectionGetResponse */ createDate?: Date; /** * * @type {Date} * @memberof SelectionGetResponse */ changeDate?: Date; /** * * @type {Array} * @memberof SelectionGetResponse */ companyTypeSelections?: Array | null; /** * * @type {Array} * @memberof SelectionGetResponse */ genreSelections?: Array | null; /** * * @type {Array} * @memberof SelectionGetResponse */ trackSelections?: Array | null; /** * * @type {number} * @memberof SelectionGetResponse */ ratingCount?: number; /** * * @type {number} * @memberof SelectionGetResponse */ views?: number; } /** * Check if a given object implements the SelectionGetResponse interface. */ export function instanceOfSelectionGetResponse(value: object): value is SelectionGetResponse { return true; } export function SelectionGetResponseFromJSON(json: any): SelectionGetResponse { return SelectionGetResponseFromJSONTyped(json, false); } export function SelectionGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectionGetResponse { if (json == null) { return json; } return { 'selectionId': json['SelectionId'] == null ? undefined : json['SelectionId'], 'userId': json['UserId'] == null ? undefined : json['UserId'], 'userName': json['UserName'] == null ? undefined : json['UserName'], 'name': json['Name'] == null ? undefined : json['Name'], 'rating': json['Rating'] == null ? undefined : json['Rating'], 'random': json['Random'] == null ? undefined : json['Random'], 'imageFile': json['ImageFile'] == null ? undefined : json['ImageFile'], 'count': json['Count'] == null ? undefined : json['Count'], 'description': json['Description'] == null ? undefined : json['Description'], 'timeOfDay': json['TimeOfDay'] == null ? undefined : TimeOfDayFromJSON(json['TimeOfDay']), 'duration': json['Duration'] == null ? undefined : json['Duration'], 'createDate': json['CreateDate'] == null ? undefined : (new Date(json['CreateDate'])), 'changeDate': json['ChangeDate'] == null ? undefined : (new Date(json['ChangeDate'])), 'companyTypeSelections': json['CompanyTypeSelections'] == null ? undefined : ((json['CompanyTypeSelections'] as Array).map(PlaylistGetCompanyFromJSON)), 'genreSelections': json['GenreSelections'] == null ? undefined : ((json['GenreSelections'] as Array).map(PlaylistGetGenreFromJSON)), 'trackSelections': json['TrackSelections'] == null ? undefined : ((json['TrackSelections'] as Array).map(TrackPublishedGetResponseFromJSON)), 'ratingCount': json['RatingCount'] == null ? undefined : json['RatingCount'], 'views': json['Views'] == null ? undefined : json['Views'], }; } export function SelectionGetResponseToJSON(json: any): SelectionGetResponse { return SelectionGetResponseToJSONTyped(json, false); } export function SelectionGetResponseToJSONTyped(value?: SelectionGetResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'SelectionId': value['selectionId'], 'UserId': value['userId'], 'UserName': value['userName'], 'Name': value['name'], 'Rating': value['rating'], 'Random': value['random'], 'ImageFile': value['imageFile'], 'Count': value['count'], 'Description': value['description'], 'TimeOfDay': TimeOfDayToJSON(value['timeOfDay']), 'Duration': value['duration'], 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()), 'ChangeDate': value['changeDate'] == null ? undefined : ((value['changeDate']).toISOString()), 'CompanyTypeSelections': value['companyTypeSelections'] == null ? undefined : ((value['companyTypeSelections'] as Array).map(PlaylistGetCompanyToJSON)), 'GenreSelections': value['genreSelections'] == null ? undefined : ((value['genreSelections'] as Array).map(PlaylistGetGenreToJSON)), 'TrackSelections': value['trackSelections'] == null ? undefined : ((value['trackSelections'] as Array).map(TrackPublishedGetResponseToJSON)), 'RatingCount': value['ratingCount'], 'Views': value['views'], }; }