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 pathDocumentText.js
More file actions
136 lines (110 loc) · 3.25 KB
/
Copy pathDocumentText.js
File metadata and controls
136 lines (110 loc) · 3.25 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/**
* 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';
/**
* The DocumentText model module.
* @module model/DocumentText
* @version 0.0.0
*/
class DocumentText {
/**
* Constructs a new <code>DocumentText</code>.
* @alias module:model/DocumentText
* @param id {Number}
*/
constructor(id) {
DocumentText.initialize(this, id);
}
/**
* 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, id) {
obj['id'] = id;
}
/**
* Constructs a <code>DocumentText</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/DocumentText} obj Optional instance to populate.
* @return {module:model/DocumentText} The populated <code>DocumentText</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new DocumentText();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('text')) {
obj['text'] = ApiClient.convertToType(data['text'], 'String');
}
if (data.hasOwnProperty('language')) {
obj['language'] = ApiClient.convertToType(data['language'], 'String');
}
}
return obj;
}
}
/**
* @member {Number} id
*/
DocumentText.prototype['id'] = undefined;
/**
* The full text representation of a document if the feature is enabled and the file format supported
* @member {String} text
*/
DocumentText.prototype['text'] = undefined;
/**
* * `german` - german * `french` - french * `italian` - italian * `english` - english * `spanish` - spanish
* @member {module:model/DocumentText.LanguageEnum} language
*/
DocumentText.prototype['language'] = undefined;
/**
* Allowed values for the <code>language</code> property.
* @enum {String}
* @readonly
*/
DocumentText['LanguageEnum'] = {
/**
* value: "german"
* @const
*/
"german": "german",
/**
* value: "french"
* @const
*/
"french": "french",
/**
* value: "italian"
* @const
*/
"italian": "italian",
/**
* value: "english"
* @const
*/
"english": "english",
/**
* value: "spanish"
* @const
*/
"spanish": "spanish",
/**
* value: "null"
* @const
*/
"null": "null"
};
export default DocumentText;