We would like to implement UI that will send some post to API. Our UI will need a button that will send a post, and a text field called "message" so a user will be able to choose a message that will be posted to the server. Of course, our UI can display errors and will show success (via toast). We will implement everything via MVC and will test presenter.
At a starting point we will have two classes that will be returned from API:
ApiError
- it's used to represent some errors from API,Post
that represent post that needs to be added to the server.