-
Notifications
You must be signed in to change notification settings - Fork 0
Update config rules #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d7df420
ee1e856
b1d3d32
2c9669a
5bf347f
f2870e0
56d9acd
1ba0344
c5b9b84
3084631
1cd9b14
51a9146
617decc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,64 +1,58 @@ | ||||||||||
| package com.daohoangson.n8n.notificationlistener.config | ||||||||||
|
|
||||||||||
| import com.daohoangson.n8n.notificationlistener.BuildConfig | ||||||||||
|
|
||||||||||
| data class WebhookConfig( | ||||||||||
| val urls: List<WebhookUrl>, | ||||||||||
| val ignoredPackages: List<String> | ||||||||||
| val urls: List<WebhookUrl>, val ignoredPackages: List<Regex> | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| data class WebhookUrl( | ||||||||||
| val url: String, | ||||||||||
| val name: String, | ||||||||||
| val rules: List<FilterRule> | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| data class FilterRule( | ||||||||||
| val packageName: String, | ||||||||||
| val titleRegex: Regex? = null, | ||||||||||
| val textRegex: Regex? = null | ||||||||||
| val url: String, val name: String, val packages: List<Regex> | ||||||||||
|
Comment on lines
+6
to
+10
|
||||||||||
| val url: String, val name: String, val packages: List<Regex> | |
| val url: String, | |
| val name: String, | |
| val packages: List<Regex> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,7 @@ object NetworkModule { | |
| .build() | ||
|
|
||
| private val retrofit = Retrofit.Builder() | ||
| .baseUrl("https://google.com") | ||
|
||
| .client(okHttpClient) | ||
| .addConverterFactory(GsonConverterFactory.create()) | ||
| .build() | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Function parameters should be placed on separate lines when there are multiple parameters for better readability and maintainability.