|
| 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 (v1) |
| 6 | + * Contact: support@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 | + |
| 16 | +/** |
| 17 | + * The LogEntry model module. |
| 18 | + * @module model/LogEntry |
| 19 | + * @version 0.0.0 |
| 20 | + */ |
| 21 | +class LogEntry { |
| 22 | + /** |
| 23 | + * Constructs a new <code>LogEntry</code>. |
| 24 | + * @alias module:model/LogEntry |
| 25 | + * @param id {Number} |
| 26 | + * @param userId {Number} |
| 27 | + * @param userEmail {String} |
| 28 | + * @param appName {String} |
| 29 | + * @param projectName {String} |
| 30 | + * @param date {Date} |
| 31 | + * @param action {String} |
| 32 | + * @param description {Object.<String, Object>} |
| 33 | + */ |
| 34 | + constructor(id, userId, userEmail, appName, projectName, date, action, description) { |
| 35 | + |
| 36 | + LogEntry.initialize(this, id, userId, userEmail, appName, projectName, date, action, description); |
| 37 | + } |
| 38 | + |
| 39 | + /** |
| 40 | + * Initializes the fields of this object. |
| 41 | + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). |
| 42 | + * Only for internal use. |
| 43 | + */ |
| 44 | + static initialize(obj, id, userId, userEmail, appName, projectName, date, action, description) { |
| 45 | + obj['id'] = id; |
| 46 | + obj['user_id'] = userId; |
| 47 | + obj['user_email'] = userEmail; |
| 48 | + obj['app_name'] = appName; |
| 49 | + obj['project_name'] = projectName; |
| 50 | + obj['date'] = date; |
| 51 | + obj['action'] = action; |
| 52 | + obj['description'] = description; |
| 53 | + } |
| 54 | + |
| 55 | + /** |
| 56 | + * Constructs a <code>LogEntry</code> from a plain JavaScript object, optionally creating a new instance. |
| 57 | + * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. |
| 58 | + * @param {Object} data The plain JavaScript object bearing properties of interest. |
| 59 | + * @param {module:model/LogEntry} obj Optional instance to populate. |
| 60 | + * @return {module:model/LogEntry} The populated <code>LogEntry</code> instance. |
| 61 | + */ |
| 62 | + static constructFromObject(data, obj) { |
| 63 | + if (data) { |
| 64 | + obj = obj || new LogEntry(); |
| 65 | + |
| 66 | + if (data.hasOwnProperty('id')) { |
| 67 | + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); |
| 68 | + } |
| 69 | + if (data.hasOwnProperty('user_id')) { |
| 70 | + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); |
| 71 | + } |
| 72 | + if (data.hasOwnProperty('user_email')) { |
| 73 | + obj['user_email'] = ApiClient.convertToType(data['user_email'], 'String'); |
| 74 | + } |
| 75 | + if (data.hasOwnProperty('app_name')) { |
| 76 | + obj['app_name'] = ApiClient.convertToType(data['app_name'], 'String'); |
| 77 | + } |
| 78 | + if (data.hasOwnProperty('project_name')) { |
| 79 | + obj['project_name'] = ApiClient.convertToType(data['project_name'], 'String'); |
| 80 | + } |
| 81 | + if (data.hasOwnProperty('date')) { |
| 82 | + obj['date'] = ApiClient.convertToType(data['date'], 'Date'); |
| 83 | + } |
| 84 | + if (data.hasOwnProperty('action')) { |
| 85 | + obj['action'] = ApiClient.convertToType(data['action'], 'String'); |
| 86 | + } |
| 87 | + if (data.hasOwnProperty('description')) { |
| 88 | + obj['description'] = ApiClient.convertToType(data['description'], {'String': Object}); |
| 89 | + } |
| 90 | + } |
| 91 | + return obj; |
| 92 | + } |
| 93 | + |
| 94 | + |
| 95 | +} |
| 96 | + |
| 97 | +/** |
| 98 | + * @member {Number} id |
| 99 | + */ |
| 100 | +LogEntry.prototype['id'] = undefined; |
| 101 | + |
| 102 | +/** |
| 103 | + * @member {Number} user_id |
| 104 | + */ |
| 105 | +LogEntry.prototype['user_id'] = undefined; |
| 106 | + |
| 107 | +/** |
| 108 | + * @member {String} user_email |
| 109 | + */ |
| 110 | +LogEntry.prototype['user_email'] = undefined; |
| 111 | + |
| 112 | +/** |
| 113 | + * @member {String} app_name |
| 114 | + */ |
| 115 | +LogEntry.prototype['app_name'] = undefined; |
| 116 | + |
| 117 | +/** |
| 118 | + * @member {String} project_name |
| 119 | + */ |
| 120 | +LogEntry.prototype['project_name'] = undefined; |
| 121 | + |
| 122 | +/** |
| 123 | + * @member {Date} date |
| 124 | + */ |
| 125 | +LogEntry.prototype['date'] = undefined; |
| 126 | + |
| 127 | +/** |
| 128 | + * @member {String} action |
| 129 | + */ |
| 130 | +LogEntry.prototype['action'] = undefined; |
| 131 | + |
| 132 | +/** |
| 133 | + * @member {Object.<String, Object>} description |
| 134 | + */ |
| 135 | +LogEntry.prototype['description'] = undefined; |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | +export default LogEntry; |
| 143 | + |
0 commit comments