This repository was archived by the owner on Nov 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathBuilding.js
More file actions
117 lines (97 loc) · 3.81 KB
/
Copy pathBuilding.js
File metadata and controls
117 lines (97 loc) · 3.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/**
* BIMData API
* 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.
*
* The version of the OpenAPI document: v1 (v1)
* Contact: support@bimdata.io
*
* 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 ModelWithPositioningPlan from './ModelWithPositioningPlan';
/**
* The Building model module.
* @module model/Building
* @version 0.0.0
*/
class Building {
/**
* Constructs a new <code>Building</code>.
* @alias module:model/Building
* @param uuid {String} IFC element or element type UUID
* @param name {String} Name of the building
* @param bimdataElevation {Number} Elevation computed by BIMData on storey's objects geometries.
* @param plans {Array.<module:model/ModelWithPositioningPlan>}
* @param plansUnreachableCount {Number}
*/
constructor(uuid, name, bimdataElevation, plans, plansUnreachableCount) {
Building.initialize(this, uuid, name, bimdataElevation, plans, plansUnreachableCount);
}
/**
* 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, uuid, name, bimdataElevation, plans, plansUnreachableCount) {
obj['uuid'] = uuid;
obj['name'] = name;
obj['bimdata_elevation'] = bimdataElevation;
obj['plans'] = plans;
obj['plans_unreachable_count'] = plansUnreachableCount;
}
/**
* Constructs a <code>Building</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Building} obj Optional instance to populate.
* @return {module:model/Building} The populated <code>Building</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Building();
if (data.hasOwnProperty('uuid')) {
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('bimdata_elevation')) {
obj['bimdata_elevation'] = ApiClient.convertToType(data['bimdata_elevation'], 'Number');
}
if (data.hasOwnProperty('plans')) {
obj['plans'] = ApiClient.convertToType(data['plans'], [ModelWithPositioningPlan]);
}
if (data.hasOwnProperty('plans_unreachable_count')) {
obj['plans_unreachable_count'] = ApiClient.convertToType(data['plans_unreachable_count'], 'Number');
}
}
return obj;
}
}
/**
* IFC element or element type UUID
* @member {String} uuid
*/
Building.prototype['uuid'] = undefined;
/**
* Name of the building
* @member {String} name
*/
Building.prototype['name'] = undefined;
/**
* Elevation computed by BIMData on storey's objects geometries.
* @member {Number} bimdata_elevation
*/
Building.prototype['bimdata_elevation'] = undefined;
/**
* @member {Array.<module:model/ModelWithPositioningPlan>} plans
*/
Building.prototype['plans'] = undefined;
/**
* @member {Number} plans_unreachable_count
*/
Building.prototype['plans_unreachable_count'] = undefined;
export default Building;