forked from pppscn/SmsForwarder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* 'main' of https://github.com/pppscn/SmsForwarder: 新增:`/config/query`接口返回`version_code`和`version_name`字段 pppscn#184 优化:Android 4.4 兼容性(410棒子) pppscn#180 v3.0.6 优化:发送通道`企业微信应用`支持http/socks5代理(应对IP白名单限制) 修复:v3.0.5在部分机型解析/config/query返回sim_info_list节点时报错 v3.0.5
- Loading branch information
Showing
14 changed files
with
361 additions
and
32 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24.0" | ||
android:viewportHeight="24.0"> | ||
android:tint="#FFFFFF" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:fillColor="#FFFFFFFF" | ||
android:fillColor="@android:color/white" | ||
android:pathData="M18,2H9C7.9,2 7,2.9 7,4v12c0,1.1 0.9,2 2,2h9c1.1,0 2,-0.9 2,-2V4C20,2.9 19.1,2 18,2zM18,16H9V4h9V16zM3,15v-2h2v2H3zM3,9.5h2v2H3V9.5zM10,20h2v2h-2V20zM3,18.5v-2h2v2H3zM5,22c-1.1,0 -2,-0.9 -2,-2h2V22zM8.5,22h-2v-2h2V22zM13.5,22L13.5,22l0,-2h2v0C15.5,21.1 14.6,22 13.5,22zM5,6L5,6l0,2H3v0C3,6.9 3.9,6 5,6z" /> | ||
</vector> |
Oops, something went wrong.