UserSettings.java
1.75 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
package top.panll.assist.dto;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
* @author lin
*/
@Component
public class UserSettings {
@Value("${userSettings.id}")
private String id;
@Value("${userSettings.record}")
private String record;
@Value("${userSettings.recordDay:7}")
private int recordDay;
@Value("${userSettings.recordTempDay:-1}")
private int recordTempDay;
@Value("${userSettings.ffmpeg}")
private String ffmpeg;
@Value("${userSettings.ffprobe}")
private String ffprobe;
@Value("${userSettings.threads:2}")
private int threads;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getRecord() {
return record;
}
public void setRecord(String record) {
this.record = record;
}
public String getFfmpeg() {
return ffmpeg;
}
public void setFfmpeg(String ffmpeg) {
this.ffmpeg = ffmpeg;
}
public String getFfprobe() {
return ffprobe;
}
public void setFfprobe(String ffprobe) {
this.ffprobe = ffprobe;
}
public int getRecordDay() {
return recordDay;
}
public void setRecordDay(int recordDay) {
this.recordDay = recordDay;
}
public int getRecordTempDay() {
if (recordTempDay == -1) {
return recordDay;
}else {
return recordTempDay;
}
}
public void setRecordTempDay(int recordTempDay) {
this.recordTempDay = recordTempDay;
}
public int getThreads() {
return threads;
}
public void setThreads(int threads) {
this.threads = threads;
}
}