-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
优化:发送通道
企业微信应用
支持http/socks5代理(应对IP白名单限制)
- Loading branch information
Showing
4 changed files
with
314 additions
and
14 deletions.
There are no files selected for viewing
19 changes: 18 additions & 1 deletion
19
app/src/main/java/com/idormy/sms/forwarder/entity/setting/WeworkAgentSetting.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
package com.idormy.sms.forwarder.entity.setting | ||
|
||
import com.idormy.sms.forwarder.R | ||
import java.io.Serializable | ||
import java.net.Proxy | ||
|
||
data class WeworkAgentSetting( | ||
var corpID: String = "", | ||
val agentID: String = "", | ||
val secret: String = "", | ||
val atAll: Boolean? = false, | ||
val toUser: String? = "@all", | ||
) : Serializable | ||
val proxyType: Proxy.Type = Proxy.Type.DIRECT, | ||
val proxyHost: String? = "", | ||
val proxyPort: String? = "", | ||
val proxyAuthenticator: Boolean? = false, | ||
val proxyUsername: String? = "", | ||
val proxyPassword: String? = "", | ||
) : Serializable { | ||
|
||
fun getProxyTypeCheckId(): Int { | ||
return when (proxyType) { | ||
Proxy.Type.HTTP -> R.id.rb_proxyHttp | ||
Proxy.Type.SOCKS -> R.id.rb_proxySocks | ||
else -> R.id.rb_proxyNone | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.