https://kotlinlang.org logo
#android-architecture
Title
# android-architecture
g

ghedeon

09/17/2019, 2:55 PM
How do you suffix models from the data layer?
UserData
,
UserEntity
,
UserDto
,
UserApi
...? 🙂
Can't find the inner peace here,
Data
is so generic, don't want to occupy this name.
Api
is ok.. but can be confused with an actual Api interface. Plus, it doesn't cover DB models, idk.
u

ursus

09/17/2019, 3:33 PM
ApiUser, DataUser, (domain) User
d

dewildte

09/18/2019, 11:50 AM
UserService, UserRepository, UserDTO, CachedUser.
UserDAO
RemoteUserRepository, LocalUserRepository
3 Views