drone.dto.ts
1.39 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
export class DroneDto {
private _id: number;
private _model_name: string;
private _maker: string;
private _usage: string;
private _picture: string;
private _specification: number;
private _weight: number;
constructor(
id: number,
model_name: string,
maker: string,
usage: string,
picture: string,
specification: number,
weight: number,
) {
this._id = id;
this._model_name = model_name;
this._maker = maker;
this._usage = usage;
this._picture = picture;
this._specification = specification;
this._weight = weight;
}
get id(): number {
return this._id;
}
set id(value: number) {
this._id = value;
}
get model_name(): string {
return this._model_name;
}
set model_name(value: string) {
this._model_name = value;
}
get maker(): string {
return this._maker;
}
set maker(value: string) {
this._maker = value;
}
get usage(): string {
return this._usage;
}
set usage(value: string) {
this._usage = value;
}
get picture(): string {
return this._picture;
}
set picture(value: string) {
this._picture = value;
}
get specification(): number {
return this._specification;
}
set specification(value: number) {
this._specification = value;
}
get weight(): number {
return this._weight;
}
set weight(value: number) {
this._weight = value;
}
}