-
Michael Comella authored
The PocketEndpoint will use this as a dependency to parse values from the PocketEndpointRaw and return them to the application. This was adapted from FFTV's PocketViewModel.FeedItem.Video (for the video data type): https://github.com/mozilla-mobile/firefox-tv/blob/785501a9eb6c68386b84d0f1104fc5b2f19ed9cb/app/src/main/java/org/mozilla/tv/firefox/pocket/PocketViewModel.kt#L36-L43 And the PocketVideoParser (for the JSON parsing): https://github.com/mozilla-mobile/firefox-tv/blob/785501a9eb6c68386b84d0f1104fc5b2f19ed9cb/app/src/main/java/org/mozilla/tv/firefox/pocket/PocketVideoParser.kt Notable changes: - The API is represented accurately and the data objects do not include presentation logic from FFTV - The parser replicates the entire API and does not parse only the parts necessary for FFTV - Minor changes like renaming - Additional tests were added to cover empty authors, multiple authors, multiple authors with invalid authors
b49c5afd