Updated on 2026-08-14

This commit is contained in:
Tangem 2023-08-29 21:42:12 +08:00
parent 537731103f
commit 6d95abf3b8
51 changed files with 19 additions and 3133 deletions

View file

@ -1,8 +0,0 @@
package com.tangem.common
/**
[REDACTED_AUTHOR]
*/
interface Filter<T> {
fun filter(value: T): Boolean
}

View file

@ -1,8 +0,0 @@
package com.tangem.common
/**
[REDACTED_AUTHOR]
*/
interface Validator<Data, Error> {
fun validate(data: Data? = null): Error?
}

View file

@ -17,11 +17,6 @@ abstract class ModuleError : Throwable(), ModuleMessage {
abstract val data: Any?
}
/**
* An exception marked as FbConsumeException should be submitted to Firebase.Crashlytics as a non-fatal issue.
*/
interface FbConsumeException
interface ModuleMessageConverter<ModuleMessage, R> {
fun convert(message: ModuleMessage): R
}