https://kotlinlang.org logo
#rx
Title
# rx
u

ursus

04/23/2019, 8:32 PM
@nic flatmap?
n

nic

04/23/2019, 8:34 PM
In this case it would require attaching the
processData
to the call every time, which is something that would be easy to forget, which is why I'm wondering if it is better to subclass and have the class handle that step every time
u

ursus

04/23/2019, 8:37 PM
I see. Well only types will help you. So only custom ValidateObservable or Observable<Validated<T>>. Latter will probably be cleaner
n

nic

04/23/2019, 8:38 PM
when you say
ValidateObservable
you mean creating this by subclassing Observable, correct?
u

ursus

04/24/2019, 4:16 AM
yea
n

nic

04/26/2019, 4:36 PM
Thanks for the help!
4 Views