/** * Flamenco manager * Render Farm manager API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ import ApiClient from '../ApiClient'; import WorkerStatus from './WorkerStatus'; /** * The WorkerStateChanged model module. * @module model/WorkerStateChanged * @version 0.0.0 */ class WorkerStateChanged { /** * Constructs a new WorkerStateChanged. * @alias module:model/WorkerStateChanged * @param status {module:model/WorkerStatus} */ constructor(status) { WorkerStateChanged.initialize(this, status); } /** * Initializes the fields of this object. * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ static initialize(obj, status) { obj['status'] = status; } /** * Constructs a WorkerStateChanged from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/WorkerStateChanged} obj Optional instance to populate. * @return {module:model/WorkerStateChanged} The populated WorkerStateChanged instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new WorkerStateChanged(); if (data.hasOwnProperty('status')) { obj['status'] = WorkerStatus.constructFromObject(data['status']); } } return obj; } } /** * @member {module:model/WorkerStatus} status */ WorkerStateChanged.prototype['status'] = undefined; export default WorkerStateChanged;