android - Right POJO Model -
how can create right pojo model needs?i want deal response 1 web server.result https://api.vid.me/videos/featured big,i need title,number of likes , url of video,how can correct right woring retrofit library?
use few part of json , paste http://www.jsonschema2pojo.org/ generate pojo you. like
{ "status": true, "page": { "offset": 0, "limit": 20, "total": 1713, "currentmarker": null, "currentmarkerday": null, "currentmarkerdate": null, "nextmarker": "2016-04-21" }, "videos": [{ "video_id": "8771660", "url": "apfz", "full_url": "https:\/\/vid.me\/apfz", "embed_url": "https:\/\/vid.me\/e\/apfz", "user_id": "6747684", "complete": "s3:\/\/v.vidd.me\/videos\/8771660.og2.mp4", "complete_url": "https:\/\/d1wst0behutosd.cloudfront.net\/videos\/8771660.og2.mp4?expires=1461310213&signature=pna8ph5ues15z5pm9mxsgamaxgly6t5iy7f6b64izli0akyvd2y7d7hwzwnkbdhe3f8315pr6rqnkd3pbcwioj~lrq~mcum740ghkkuf2b1tmnxymif58-mwnl0ldkbub39orllc7ednhecm8mvzczkbxctlznhwbjeg~ass0dhg0xe68emmpgvcx3~dj6tzszehmfs7h3vvgnp2ow6vbxd4co5so31syys0stivurmg40rc51b2khqjybtsmom5ewxhqf60eela0maryl46kbxjtzrxvbkaezcpn9p9ksuqegjzumh1gl3br9jzjn1czgkhugahtozyhs7yfrwnxa__&key-pair-id=apkajj6welapep47ukwq", "state": "success", "title": "rip prince | prince performs \u201cpurple rain\u201d during downpour @ super bowl xli ", "description": "#prince #purplerain #music #randb #ripprince ", "duration": 492.08, "height": 360, "width": 640, "date_created": "2016-04-21 18:06:42", "date_stored": "2016-04-21 18:07:40", "date_completed": "2016-04-21 18:07:43", "comment_count": 11, "view_count": 6815, "share_count": 15, "version": 10, "nsfw": false, "thumbnail": "thumbnails\/8771660\/8771660.jpg?v2r1461269880", "thumbnail_url": "https:\/\/d1wst0behutosd.cloudfront.net\/thumbnails\/8771660\/8771660.jpg?v2r1461269880", "thumbnail_gif": "thumbnails\/8771660\/8771660.gif?v1r1461269888", "thumbnail_gif_url": "https:\/\/d1wst0behutosd.cloudfront.net\/thumbnails\/8771660\/8771660.gif?v1r1461269888", "storyboard": "https:\/\/d1wst0behutosd.cloudfront.net\/storyboards\/8771660\/8771660-{05}.jpg?v1r1461262073", "score": 36, "likes_count": 21, "channel_id": null, "source": "computer", "private": false, "latitude": 0, "longitude": 0, "place_id": null, "place_name": null, "colors": "#403742,#bf9fa2,#8a747e,#637282,#8a94a6,#706d6a", "reddit_link": null, "youtube_override_source": null, "watching_count": 87, "clip_url": "https:\/\/d1wst0behutosd.cloudfront.net\/videos\/8771660\/23259725-clip.mp4", "is_featured": true, "date_featured": "2016-04-21 20:06:31", "score_modifier": 15, "user": { "user_id": "6747684", "username": "balle_courbe", "full_url": "https:\/\/vid.me\/balle_courbe", "avatar": "avatars\/6747684.jpg?v4r1445280831", "avatar_url": "https:\/\/d1wst0behutosd.cloudfront.net\/avatars\/6747684.jpg?v4r1445280831", "cover": "channel_covers\/6747684.jpg?v1r1445280846", "cover_url": "https:\/\/d1wst0behutosd.cloudfront.net\/channel_covers\/6747684.jpg?v1r1445280846", "displayname": null, "follower_count": 46, "likes_count": "259", "video_count": 257, "video_views": "1059777", "videos_scores": 865, "comments_scores": 0, "bio": "un site de sport compl\u00e8tement d\u00e9cal\u00e9 en partenariat avec rds et urbania\r\nwww.ballecourbe.ca" }, "formats": [{ "type": "dash", "uri": "https:\/\/api.vid.me\/video\/8771660\/stream?format=dash", "width": null, "height": null, "version": 10 }, { "type": "hls", "uri": "https:\/\/api.vid.me\/video\/8771660\/stream?format=hls", "width": null, "height": null, "version": 10 }] } ,{ "video_id": "8734973", "url": "42fg", "full_url": "https:\/\/vid.me\/42fg", "embed_url": "https:\/\/vid.me\/e\/42fg", "user_id": null, "complete": "s3:\/\/v.vidd.me\/videos\/8734973\/23148626.480p.mp4", "complete_url": "https:\/\/d1wst0behutosd.cloudfront.net\/videos\/8734973\/23148626.480p.mp4?expires=1461310213&signature=dbcfziek6meqkiz3jnca6-3icqsfla6v9xgumzhorov14cutp2yh23v8qd7em8uzuwkpdvjfhriny8kzlrulk2n6sbadv3ax~-onqcn9e6gilevasiqjivq6rag0x3~wo~qd85bchqovbfbzpbqphny3q9x3gjaxobnv02hbxxgexfn8vtmmnx6vk8qyatbchmabpdnst1zxqm6lehdgqgqcbxjkmy9u8otaej-wtuz-pc2bz89k6b~iqrszsi3tqcgrkisvouelgvnmzndbkbpb48yjkins9nk6o86nwh9ihs03k~nkutq39u7eocayy3mfc84vprm9r~146ztbpg__&key-pair-id=apkajj6welapep47ukwq", "state": "success", "title": "pov dirt biking ", "description": "#dirtbiking #motocross #sports #offroad #pov #gopro ", "duration": 200.27, "height": 480, "width": 854, "date_created": "2016-04-19 12:38:05", "date_stored": "2016-04-19 12:40:46", "date_completed": "2016-04-19 12:41:33", "comment_count": 9, "view_count": 9832, "share_count": 14, "version": 10, "nsfw": false, "thumbnail": "thumbnails\/8734973\/8734973.jpg?v2r1461103001", "thumbnail_url": "https:\/\/d1wst0behutosd.cloudfront.net\/thumbnails\/8734973\/8734973.jpg?v2r1461103001", "thumbnail_gif": "thumbnails\/8734973\/8734973.gif?v1r1461103012", "thumbnail_gif_url": "https:\/\/d1wst0behutosd.cloudfront.net\/thumbnails\/8734973\/8734973.gif?v1r1461103012", "storyboard": "https:\/\/d1wst0behutosd.cloudfront.net\/storyboards\/8734973\/8734973-{03}.jpg?v1r1461069698", "score": 31, "likes_count": 21, "channel_id": null, "source": "computer", "private": false, "latitude": 0, "longitude": 0, "place_id": null, "place_name": null, "colors": "#414047,#d0c6ca,#938c91,#a7b1b3,#a5a2ac,#797e7c", "reddit_link": "https:\/\/www.reddit.com\/r\/dualsport\/comments\/4fheuc\/took_some_fellow_xr_riders_dirt_cherries\/", "youtube_override_source": null, "watching_count": 4, "clip_url": "https:\/\/d1wst0behutosd.cloudfront.net\/videos\/8734973\/23148629-clip.mp4", "is_featured": true, "date_featured": "2016-04-19 21:55:48", "score_modifier": 12, "formats": [{ "type": "dash", "uri": "https:\/\/api.vid.me\/video\/8734973\/stream?format=dash", "width": null, "height": null, "version": 10 }, { "type": "hls", "uri": "https:\/\/api.vid.me\/video\/8734973\/stream?format=hls", "width": null, "height": null, "version": 10 }] }], "watching": { "8771660": 87, "8775629": 779, "8768903": 87, "8765873": 44, "8769371": 34, "8764733": 40, "8770856": 50, "8727017": 30, "8754326": 33, "8746172": 4, "8747912": 10, "6975323": 27, "8724479": 14, "8743094": 7, "8735804": 34, "8736356": 6, "8727716": 2, "8725823": 34, "8722406": 4, "8734973": 4 }, "viewervotes": [] }
Comments
Post a Comment