/* 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 { FeedPlaylistResponse } from './FeedPlaylistResponse'; import { FeedPlaylistResponseFromJSON, FeedPlaylistResponseFromJSONTyped, FeedPlaylistResponseToJSON, FeedPlaylistResponseToJSONTyped, } from './FeedPlaylistResponse'; import type { CalendarDay } from './CalendarDay'; import { CalendarDayFromJSON, CalendarDayFromJSONTyped, CalendarDayToJSON, CalendarDayToJSONTyped, } from './CalendarDay'; /** * * @export * @interface FeedGetResponse */ export interface FeedGetResponse { /** * * @type {number} * @memberof FeedGetResponse */ feedId?: number; /** * * @type {string} * @memberof FeedGetResponse */ userId?: string | null; /** * * @type {string} * @memberof FeedGetResponse */ userName?: string | null; /** * * @type {string} * @memberof FeedGetResponse */ name?: string | null; /** * * @type {boolean} * @memberof FeedGetResponse */ random?: boolean; /** * * @type {boolean} * @memberof FeedGetResponse */ stopPlay?: boolean; /** * * @type {string} * @memberof FeedGetResponse */ duration?: string; /** * * @type {Date} * @memberof FeedGetResponse */ createDate?: Date | null; /** * * @type {Date} * @memberof FeedGetResponse */ changeDate?: Date | null; /** * * @type {CalendarDay} * @memberof FeedGetResponse */ calendarDay?: CalendarDay; /** * * @type {Date} * @memberof FeedGetResponse */ calendarDate?: Date | null; /** * * @type {Array} * @memberof FeedGetResponse */ playlists?: Array | null; } /** * Check if a given object implements the FeedGetResponse interface. */ export function instanceOfFeedGetResponse(value: object): value is FeedGetResponse { return true; } export function FeedGetResponseFromJSON(json: any): FeedGetResponse { return FeedGetResponseFromJSONTyped(json, false); } export function FeedGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedGetResponse { if (json == null) { return json; } return { 'feedId': json['FeedId'] == null ? undefined : json['FeedId'], 'userId': json['UserId'] == null ? undefined : json['UserId'], 'userName': json['UserName'] == null ? undefined : json['UserName'], 'name': json['Name'] == null ? undefined : json['Name'], 'random': json['Random'] == null ? undefined : json['Random'], 'stopPlay': json['StopPlay'] == null ? undefined : json['StopPlay'], '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'])), '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(FeedPlaylistResponseFromJSON)), }; } export function FeedGetResponseToJSON(json: any): FeedGetResponse { return FeedGetResponseToJSONTyped(json, false); } export function FeedGetResponseToJSONTyped(value?: FeedGetResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'FeedId': value['feedId'], 'UserId': value['userId'], 'UserName': value['userName'], 'Name': value['name'], 'Random': value['random'], 'StopPlay': value['stopPlay'], 'Duration': value['duration'], 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate'] as any).toISOString()), 'ChangeDate': value['changeDate'] == null ? undefined : ((value['changeDate'] as any).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(FeedPlaylistResponseToJSON)), }; }