mirror of
https://github.com/pppscn/SmsForwarder
synced 2025-08-02 17:07:41 +08:00
新增:主动控制
增加远程WOL
功能(用于远程唤醒同一个局域网其他设备) #190
This commit is contained in:
parent
5b402895dc
commit
b9617e0978
@ -53,7 +53,7 @@ class ClientFragment : BaseFragment<FragmentClientBinding?>(),
|
||||
appContext = requireActivity().application as App
|
||||
|
||||
//测试按钮增加倒计时,避免重复点击
|
||||
mCountDownHelper = CountDownButtonHelper(binding!!.btnServerTest, SettingUtils.requestTimeout)
|
||||
mCountDownHelper = CountDownButtonHelper(binding!!.btnServerTest, 3)
|
||||
mCountDownHelper!!.setOnCountDownListener(object : CountDownButtonHelper.OnCountDownListener {
|
||||
override fun onCountDown(time: Int) {
|
||||
binding!!.btnServerTest.text = String.format(getString(R.string.seconds_n), time)
|
||||
@ -184,6 +184,7 @@ class ClientFragment : BaseFragment<FragmentClientBinding?>(),
|
||||
|| (item.name == ResUtils.getString(R.string.api_call_query) && !serverConfig!!.enableApiCallQuery)
|
||||
|| (item.name == ResUtils.getString(R.string.api_contact_query) && !serverConfig!!.enableApiContactQuery)
|
||||
|| (item.name == ResUtils.getString(R.string.api_battery_query) && !serverConfig!!.enableApiBatteryQuery)
|
||||
|| (item.name == ResUtils.getString(R.string.api_wol) && !serverConfig!!.enableApiWol)
|
||||
)
|
||||
) {
|
||||
XToastUtils.error(getString(R.string.disabled_on_the_server))
|
||||
|
@ -36,6 +36,7 @@ class ConfigController {
|
||||
HttpServerUtils.enableApiCallQuery,
|
||||
HttpServerUtils.enableApiContactQuery,
|
||||
HttpServerUtils.enableApiBatteryQuery,
|
||||
HttpServerUtils.enableApiWol,
|
||||
SettingUtils.extraDeviceMark.toString(),
|
||||
SettingUtils.extraSim1.toString(),
|
||||
SettingUtils.extraSim2.toString(),
|
||||
|
@ -17,6 +17,8 @@ data class ConfigData(
|
||||
var enableApiContactQuery: Boolean = false,
|
||||
@SerializedName("enable_api_battery_query")
|
||||
var enableApiBatteryQuery: Boolean = false,
|
||||
@SerializedName("enable_api_wol")
|
||||
var enableApiWol: Boolean = false,
|
||||
@SerializedName("extra_device_mark")
|
||||
var extraDeviceMark: String = "",
|
||||
@SerializedName("extra_sim1")
|
||||
|
Loading…
x
Reference in New Issue
Block a user