|
| 1 | +/** |
| 2 | + * BIMData API |
| 3 | + * BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. |
| 4 | + * |
| 5 | + * The version of the OpenAPI document: v1 |
| 6 | + * Contact: contact@bimdata.io |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 9 | + * https://openapi-generator.tech |
| 10 | + * Do not edit the class manually. |
| 11 | + * |
| 12 | + */ |
| 13 | + |
| 14 | +import ApiClient from '../ApiClient'; |
| 15 | +import Point from './Point'; |
| 16 | + |
| 17 | +/** |
| 18 | + * The Line model module. |
| 19 | + * @module model/Line |
| 20 | + * @version 0.0.0 |
| 21 | + */ |
| 22 | +class Line { |
| 23 | + /** |
| 24 | + * Constructs a new <code>Line</code>. |
| 25 | + * @alias module:model/Line |
| 26 | + * @param endPoint {module:model/Point} |
| 27 | + * @param startPoint {module:model/Point} |
| 28 | + */ |
| 29 | + constructor(endPoint, startPoint) { |
| 30 | + |
| 31 | + Line.initialize(this, endPoint, startPoint); |
| 32 | + } |
| 33 | + |
| 34 | + /** |
| 35 | + * Initializes the fields of this object. |
| 36 | + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). |
| 37 | + * Only for internal use. |
| 38 | + */ |
| 39 | + static initialize(obj, endPoint, startPoint) { |
| 40 | + obj['end_point'] = endPoint; |
| 41 | + obj['start_point'] = startPoint; |
| 42 | + } |
| 43 | + |
| 44 | + /** |
| 45 | + * Constructs a <code>Line</code> from a plain JavaScript object, optionally creating a new instance. |
| 46 | + * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. |
| 47 | + * @param {Object} data The plain JavaScript object bearing properties of interest. |
| 48 | + * @param {module:model/Line} obj Optional instance to populate. |
| 49 | + * @return {module:model/Line} The populated <code>Line</code> instance. |
| 50 | + */ |
| 51 | + static constructFromObject(data, obj) { |
| 52 | + if (data) { |
| 53 | + obj = obj || new Line(); |
| 54 | + |
| 55 | + if (data.hasOwnProperty('end_point')) { |
| 56 | + obj['end_point'] = Point.constructFromObject(data['end_point']); |
| 57 | + } |
| 58 | + if (data.hasOwnProperty('start_point')) { |
| 59 | + obj['start_point'] = Point.constructFromObject(data['start_point']); |
| 60 | + } |
| 61 | + } |
| 62 | + return obj; |
| 63 | + } |
| 64 | + |
| 65 | + |
| 66 | +} |
| 67 | + |
| 68 | +/** |
| 69 | + * @member {module:model/Point} end_point |
| 70 | + */ |
| 71 | +Line.prototype['end_point'] = undefined; |
| 72 | + |
| 73 | +/** |
| 74 | + * @member {module:model/Point} start_point |
| 75 | + */ |
| 76 | +Line.prototype['start_point'] = undefined; |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | +export default Line; |
| 84 | + |
0 commit comments