UserSetup.java 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. package com.genersoft.iot.vmp.conf;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.stereotype.Component;
  4. import java.util.ArrayList;
  5. import java.util.List;
  6. @Component
  7. @ConfigurationProperties(prefix = "user-settings", ignoreInvalidFields = true)
  8. public class UserSetup {
  9. private Boolean savePositionHistory = Boolean.FALSE;
  10. private Boolean autoApplyPlay = Boolean.FALSE;
  11. private Boolean seniorSdp = Boolean.FALSE;
  12. private Long playTimeout = 18000L;
  13. private Boolean interfaceAuthentication = Boolean.TRUE;
  14. private Boolean recordPushLive = Boolean.TRUE;
  15. private Boolean recordSip = Boolean.TRUE;
  16. private Boolean logInDatebase = Boolean.TRUE;
  17. private Boolean redisConfig = Boolean.TRUE;
  18. private String serverId = "000000";
  19. private String thirdPartyGBIdReg = "[\\s\\S]*";
  20. private List<String> interfaceAuthenticationExcludes = new ArrayList<>();
  21. public Boolean getSavePositionHistory() {
  22. return savePositionHistory;
  23. }
  24. public Boolean isSavePositionHistory() {
  25. return savePositionHistory;
  26. }
  27. public Boolean isAutoApplyPlay() {
  28. return autoApplyPlay;
  29. }
  30. public Boolean isSeniorSdp() {
  31. return seniorSdp;
  32. }
  33. public Long getPlayTimeout() {
  34. return playTimeout;
  35. }
  36. public Boolean isInterfaceAuthentication() {
  37. return interfaceAuthentication;
  38. }
  39. public Boolean isRecordPushLive() {
  40. return recordPushLive;
  41. }
  42. public List<String> getInterfaceAuthenticationExcludes() {
  43. return interfaceAuthenticationExcludes;
  44. }
  45. public void setSavePositionHistory(Boolean savePositionHistory) {
  46. this.savePositionHistory = savePositionHistory;
  47. }
  48. public void setAutoApplyPlay(Boolean autoApplyPlay) {
  49. this.autoApplyPlay = autoApplyPlay;
  50. }
  51. public void setSeniorSdp(Boolean seniorSdp) {
  52. this.seniorSdp = seniorSdp;
  53. }
  54. public void setPlayTimeout(Long playTimeout) {
  55. this.playTimeout = playTimeout;
  56. }
  57. public void setInterfaceAuthentication(boolean interfaceAuthentication) {
  58. this.interfaceAuthentication = interfaceAuthentication;
  59. }
  60. public void setRecordPushLive(Boolean recordPushLive) {
  61. this.recordPushLive = recordPushLive;
  62. }
  63. public void setInterfaceAuthenticationExcludes(List<String> interfaceAuthenticationExcludes) {
  64. this.interfaceAuthenticationExcludes = interfaceAuthenticationExcludes;
  65. }
  66. public Boolean getLogInDatebase() {
  67. return logInDatebase;
  68. }
  69. public void setLogInDatebase(Boolean logInDatebase) {
  70. this.logInDatebase = logInDatebase;
  71. }
  72. public String getServerId() {
  73. return serverId;
  74. }
  75. public void setServerId(String serverId) {
  76. this.serverId = serverId;
  77. }
  78. public String getThirdPartyGBIdReg() {
  79. return thirdPartyGBIdReg;
  80. }
  81. public void setThirdPartyGBIdReg(String thirdPartyGBIdReg) {
  82. this.thirdPartyGBIdReg = thirdPartyGBIdReg;
  83. }
  84. public Boolean getRedisConfig() {
  85. return redisConfig;
  86. }
  87. public void setRedisConfig(Boolean redisConfig) {
  88. this.redisConfig = redisConfig;
  89. }
  90. public Boolean getRecordSip() {
  91. return recordSip;
  92. }
  93. public void setRecordSip(Boolean recordSip) {
  94. this.recordSip = recordSip;
  95. }
  96. }