| | |
| | | import com.google.gson.Gson; |
| | | import com.hdl.photovoltaic.HDLApp; |
| | | import com.hdl.photovoltaic.enums.Languages; |
| | | import com.hdl.photovoltaic.enums.PowerStationType; |
| | | import com.hdl.photovoltaic.other.HdlFileLogic; |
| | | import com.hdl.photovoltaic.other.HdlLogLogic; |
| | | import com.hdl.photovoltaic.other.HdlResidenceLogic; |
| | |
| | | //是否是B端账号登录(true=B端) |
| | | private boolean isB_account; |
| | | //是否正式服务器(true:正式,false:测试) |
| | | private boolean isOnlineServer = true; |
| | | private boolean isOnlineServer = false; |
| | | |
| | | //智能体接口密钥 |
| | | private String agentSecret; |
| | | //智能体接口地址 |
| | | private String agentUrl; |
| | | //当前会话ID |
| | | private String conversationId; |
| | | //电站类型(INV = 逆变器电站;BMS = BMS电站) |
| | | private String powerStationType = PowerStationType.INV; |
| | | |
| | | public String getAgentUrl() { |
| | | return agentUrl == null ? "" : agentUrl; |
| | | } |
| | | |
| | | public void setAgentUrl(String agentUrl) { |
| | | this.agentUrl = agentUrl; |
| | | } |
| | | |
| | | /** |
| | | * 智能体AppKey |
| | | * |
| | | * @return 智能体AppKey |
| | | */ |
| | | public String getAgentSecret() { |
| | | return agentSecret == null ? "" : agentSecret; |
| | | } |
| | | |
| | | public void setAgentSecret(String agentApiKey) { |
| | | this.agentSecret = agentApiKey; |
| | | } |
| | | |
| | | public String getConversationId() { |
| | | return conversationId == null ? "" : conversationId; |
| | | } |
| | | |
| | | public void setConversationId(String conversationId) { |
| | | this.conversationId = conversationId; |
| | | } |
| | | |
| | | public boolean isOnlineServer() { |
| | | return isOnlineServer; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 电站类型(INV = 逆变器电站;BMS = BMS电站) |
| | | * @return 电站类型(INV = 逆变器电站;BMS = BMS电站) |
| | | */ |
| | | public String getPowerStationType() { |
| | | return powerStationType; |
| | | } |
| | | |
| | | public void setPowerStationType(String powerStationType) { |
| | | this.powerStationType = powerStationType; |
| | | } |
| | | |
| | | /** |
| | | * uni一级界面的安全距离背景颜色(0=电站详情界面,1=添加电站界面,2=设备调测界面) |
| | | * |
| | | * @return 值 |
| | |
| | | |
| | | /** |
| | | * 是不是阿拉伯语言 |
| | | * |
| | | * @return true表示是阿拉伯语言,否则不是 |
| | | */ |
| | | public boolean isArabicLanguage() { |