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
| package com.dji.sample.manage.model.enums;
|
| import java.util.Arrays;
| import java.util.List;
| import java.util.stream.Collectors;
|
| /**
| * @author sean
| * @version 1.0
| * @date 2022/4/29
| */
| public enum PayloadModelEnum {
|
| Z30("Z30", "20-0"),
|
| XT2("XT2", "26-0"),
|
| XTS("XTS", "41-0"),
|
| H20("H20", "42-0"),
|
| H20T("H20T", "43-0"),
|
| P1("P1", "50-65535"),
|
| M30("M30", "52-0"),
|
| M30T("M30T", "53-0"),
|
| H20N("H20N", "61-0"),
|
| DOCK("DOCK", "165-0"),
|
| L1("L1", "90742-0");
|
| private String model;
|
| private String index;
|
| PayloadModelEnum(String model, String index) {
| this.model = model;
| this.index = index;
| }
|
| public String getModel() {
| return model;
| }
|
| public String getIndex() {
| return index;
| }
|
| public static List<String> getAllModel() {
| return Arrays.stream(PayloadModelEnum.values()).map(PayloadModelEnum::getModel).collect(Collectors.toList());
| }
|
| public static List<String> getAllIndex() {
| return Arrays.stream(PayloadModelEnum.values()).map(PayloadModelEnum::getIndex).collect(Collectors.toList());
| }
|
| }
|
|