// tslint:disable /** * 3Di API * 3Di simulation API (latest stable version: v3) Framework release: 3.0.1 3Di core release: 2.3.0.dev0 deployed on: 10:42AM (UTC) on October 04, 2022 * * The version of the OpenAPI document: v3 * Contact: info@nelen-schuurmans.nl * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface SimulationChannel */ export interface SimulationChannel { /** * * @type {number} * @memberof SimulationChannel */ readonly id?: number; /** * * @type {string} * @memberof SimulationChannel */ readonly simulation?: string; /** * * @type {string} * @memberof SimulationChannel */ readonly channelName?: string; /** * * @type {Date} * @memberof SimulationChannel */ readonly created?: Date; /** * * @type {string} * @memberof SimulationChannel */ readonly state?: SimulationChannelStateEnum; } export function SimulationChannelFromJSON(json: any): SimulationChannel { return { 'id': !exists(json, 'id') ? undefined : json['id'], 'simulation': !exists(json, 'simulation') ? undefined : json['simulation'], 'channelName': !exists(json, 'channel_name') ? undefined : json['channel_name'], 'created': !exists(json, 'created') ? undefined : new Date(json['created']), 'state': !exists(json, 'state') ? undefined : json['state'], }; } export function SimulationChannelToJSON(value?: SimulationChannel): any { if (value === undefined) { return undefined; } return { }; } /** * @export * @enum {string} */ export enum SimulationChannelStateEnum { Pending = 'pending', Confirmed = 'confirmed', Timeout = 'timeout' }