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
| package com.dji.sdk.cloudapi.device;
|
| import com.dji.sdk.exception.CloudSDKException;
| import com.fasterxml.jackson.annotation.JsonCreator;
| import com.fasterxml.jackson.annotation.JsonValue;
|
| import java.util.Arrays;
|
| /**
| * @author sean
| * @version 1.7
| * @date 2023/6/30
| */
| public enum ThermalPaletteStyleEnum {
|
| WHITE_HOT(0),
|
| BLACK_HOT(1),
|
| RED_HOT(2),
|
| GREEN_HOT(3),
|
| FUSION(4),
|
| RAINBOW(5),
|
| IRONBOW1(6),
|
| IRONBOW2(7),
|
| ICE_FIRE(8),
|
| SEPIA(9),
|
| GLOWBOW(10),
|
| COLOR1(11),
|
| COLOR2(12),
|
| RAIN(13),
|
| HOT_SPOT(14),
|
| RAINBOW2(15),
|
| GRAY(16),
|
| METAL(17),
|
| COLD_SPOT(18),
| ;
|
| private final int style;
|
| ThermalPaletteStyleEnum(int style) {
| this.style = style;
| }
|
| @JsonValue
| public int getStyle() {
| return style;
| }
|
| @JsonCreator
| public static ThermalPaletteStyleEnum find(int style) {
| return Arrays.stream(values()).filter(styleEnum -> styleEnum.style == style).findAny()
| .orElseThrow(() -> new CloudSDKException(ThermalPaletteStyleEnum.class, style));
| }
|
| }
|
|