Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. Description
  2.  
  3. Implement a view similar to XYZ“home view” (see screenshots below).
  4. [Basically looks like Netflix + Audio Books + Media etc...their whole app]
  5.  
  6.  
  7.  
  8.  
  9. The “home view” is a vertically scrolling list that displays sub-lists of the 6 kinds of media that Hoopla supports: Music, Audiobooks, Movies, Television, Comics and Ebooks. Each media type has covert art of varying dimensions. The “home view” displays 20 titles per media type in a horizontally scrolling view. For this code sample, we will not worry about making each title clickable, nor worry about making them link to a “details” page – we’re just concerned about the displaying of cover art. Please make sure your code supports smartphones and 600dp devices in both landscape and portrait orientation.
  10.  
  11. Retrieving Data
  12.  
  13. To retrieve the list of titles to display in the “home view”, you will need to make a GET request to the following URL:
  14.  
  15. https://hoopla-ws-dev.hoopladigital.com/home
  16.  
  17. You will need to pass the following header/value pair as part of the GET request:
  18.  
  19. “ws-api”, “2.1”
  20.  
  21. Response Data
  22.  
  23. You will get a JSON object as the response to this webservice call that will look something like this:
  24.  
  25. {
  26. “collections”:
  27. [
  28. {
  29. “kind”: “MOVIE”,
  30. “label”: ”Movies”,
  31. “titles”: [
  32. {… , “artkey”: “abc_123”, …},
  33. (… , “artkey”: “abc_456”, …},
  34. ]
  35. },
  36. ……
  37. ]
  38. }
  39.  
  40. In the response, you will receive an array of “kinds”, where each “kind” object represents a media type (Music, Movies, etc). Each of these “kind” objects will contain an array of titles representing a piece of content. The only piece of relevant data in each “title” object is the “artkey”. You will use this to retrieve the cover art for each title to be displayed. The complete URL to retrieve a title’s cover art is as follows:
  41.  
  42. http://d2snwnmzyr8jue.cloudfront.net/{artkey}_270.jpeg
  43.  
  44. It is important that you maintain the aspect ratio of the cover art (a few titles within a given media type may not have consistent image dimensions, which is ok).
  45. Project Requirements
  46.  
  47. Please make sure your project is coded in either Intellij IDEA or Android Studio
  48. Feel free to use as many open source libraries as you like
  49. Please use Gradle includes instead of library jar files
  50.  
  51. Submitting Code
  52.  
  53. Please zip up your project. Make sure to clean up the /build directory before you zip up your project (this will reduce the overall size of the zip file)
  54. If your email client will allow (some times Gmail will not), attach your zip to an email
  55. If your email client does not allow attaching your zip file, please email us a Dropbox/Box/Google Drive/etc link to your zip file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement