-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/connect in app notification #78
Conversation
DanielGreenEngineer
commented
Nov 21, 2024
- https://github.com/rees46/development/issues/1661
...tion-sdk/src/main/kotlin/com/personalization/api/responses/initialization/WebPushSettings.kt
Outdated
Show resolved
Hide resolved
personalization-sdk/src/main/kotlin/com/personalization/errors/response.error.kt.kt
Outdated
Show resolved
Hide resolved
...n/kotlin/com/personalization/features/inAppNotification/impl/InAppNotificationManagerImpl.kt
Show resolved
Hide resolved
...n/kotlin/com/personalization/features/inAppNotification/impl/InAppNotificationManagerImpl.kt
Show resolved
Hide resolved
...lization-sdk/src/main/kotlin/com/personalization/sdk/data/mappers/SdkInitializationMapper.kt
Outdated
Show resolved
Hide resolved
...kotlin/com/personalization/sdk/domain/usecases/inAppNotification/InAppNotificationUseCase.kt
Outdated
Show resolved
Hide resolved
private val message: String? = null, | ||
) { | ||
|
||
fun logError() { | ||
Log.e( | ||
/* tag = */ tag, | ||
/* msg = */ "Error caught in $functionName : $message" | ||
/* msg = */ "Field is empty or null in $functionName : $message" |
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.
фиговый паттерн, так как пустое поле и nulled - разные состояния, это две разные ошибки, постарайся всегда декомпозировать такое состояние
message = "Error mapping CloseAction", | ||
exception = exception | ||
) | ||
null |
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.
возвращать null - один из древнейших антипаттернов, подумай над этим в будущем