UserSettings.java
1.51 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
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-temp:./recordTemp}")
private String recordTempPath;
@Value("${userSettings.record-temp-day:7}")
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 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 getRecordTempDay() {
return recordTempDay;
}
public void setRecordTempDay(int recordTempDay) {
this.recordTempDay = recordTempDay;
}
public int getThreads() {
return threads;
}
public void setThreads(int threads) {
this.threads = threads;
}
public String getRecordTempPath() {
return recordTempPath;
}
public void setRecordTempPath(String recordTempPath) {
this.recordTempPath = recordTempPath;
}
}