September 2018
Intermediate to advanced
386 pages
11h 17m
English
We already discussed the importance of data classes and how they work. Since now we are doing the actual implementation, it's time to restructure it and modify some of them.
In the source code, you will see mainly three files: requests/RequestModels.kt, responses/ResponseModel.kt, and Models.kt:

If I say it's plenty of classes, but still part of only these three files, it's a wonder. Data classes say so much in just one line. Here are those new classes:
data class PollCreationRequest(val pollTitle: String, val pollQuestion: String, val createdBy: String)data ...
Read now
Unlock full access