Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Online Movies Database Search Result
{
"Search": [
{
"Title": "Harry Potter and the Deathly Hallows: Part 2",
"Year": "2011",
"imdbID": "tt1201607",
"Type": "movie",
"Poster": "https://m.media-amazon.com/images/M/MV5BMjIyZGU4YzUtNDkzYi00ZDRhLTljYzctYTMxMDQ4M2E0Y2YxXkEyXkFqcGdeQXVyNTIzOTk5ODM@._V1_SX300.jpg"
},
{
"Title": "Harry Potter and the Sorcerer's Stone",
"Year": "2001",
"imdbID": "tt0241527",
"Type": "movie",
"Poster": "https://m.media-amazon.com/images/M/MV5BNjQ3NWNlNmQtMTE5ZS00MDdmLTlkZjUtZTBlM2UxMGFiMTU3XkEyXkFqcGdeQXVyNjUwNzk3NDc@._V1_SX300.jpg"
},
{
"Title": "Harry Potter and the Chamber of Secrets",
"Year": "2002",
"imdbID": "tt0295297",
"Type": "movie",
"Poster": "https://m.media-amazon.com/images/M/MV5BMTcxODgwMDkxNV5BMl5BanBnXkFtZTYwMDk2MDg3._V1_SX300.jpg"
},
{
"Title": "Harry Potter and the Prisoner of Azkaban",
"Year": "2004",
"imdbID": "tt0304141",
"Type": "movie",
"Poster": "https://m.media-amazon.com/images/M/MV5BMTY4NTIwODg0N15BMl5BanBnXkFtZTcwOTc0MjEzMw@@._V1_SX300.jpg"
},
{
"Title": "Harry Potter and the Goblet of Fire",
"Year": "2005",
"imdbID": "tt0330373",
"Type": "movie",
"Poster": "https://m.media-amazon.com/images/M/MV5BMTI1NDMyMjExOF5BMl5BanBnXkFtZTcwOTc4MjQzMQ@@._V1_SX300.jpg"
},
{
"Title": "Harry Potter and the Order of the Phoenix",
"Year": "2007",
"imdbID": "tt0373889",
"Type": "movie",
"Poster": "https://m.media-amazon.com/images/M/MV5BMTM0NTczMTUzOV5BMl5BanBnXkFtZTYwMzIxNTg3._V1_SX300.jpg"
},
{
"Title": "Harry Potter and the Deathly Hallows: Part 1",
"Year": "2010",
"imdbID": "tt0926084",
"Type": "movie",
"Poster": "https://m.media-amazon.com/images/M/MV5BMTQ2OTE1Mjk0N15BMl5BanBnXkFtZTcwODE3MDAwNA@@._V1_SX300.jpg"
},
{
"Title": "Harry Potter and the Half-Blood Prince",
"Year": "2009",
"imdbID": "tt0417741",
"Type": "movie",
"Poster": "https://m.media-amazon.com/images/M/MV5BNzU3NDg4NTAyNV5BMl5BanBnXkFtZTcwOTg2ODg1Mg@@._V1_SX300.jpg"
},
{
"Title": "When Harry Met Sally...",
"Year": "1989",
"imdbID": "tt0098635",
"Type": "movie",
"Poster": "https://m.media-amazon.com/images/M/MV5BMjE0ODEwNjM2NF5BMl5BanBnXkFtZTcwMjU2Mzg3NA@@._V1_SX300.jpg"
},
{
"Title": "Dirty Harry",
"Year": "1971",
"imdbID": "tt0066999",
"Type": "movie",
"Poster": "https://m.media-amazon.com/images/M/MV5BMzdhMTM2YTItOWU2YS00MTM0LTgyNDYtMDM1OWM3NzkzNTM2XkEyXkFqcGdeQXVyNjc1NTYyMjg@._V1_SX300.jpg"
}
],
"totalResults": "572",
"Response": "True"
}
@nidhashafeef
Copy link

nidhashafeef commented Dec 21, 2019

package com.example.myapplication

data class Dem(var Search:DemoSearch)
data class DemoSearch(var Search:ArrayList<HarryPotter>,
                      var totalResults:String,
                      var Response:String)
data class HarryPotter(var Title:String,
                   var Year:String,
                   var imdbID:String,
                   var Type:String,
                   var Poster:String)

@ShahmaHassan
Copy link

ShahmaHassan commented Dec 21, 2019

package com.example.android.myapplication

data class Never(var search:DemoSearch)
data class DemoSearch(var Search:ArrayList<Harrypotter>,
                      var totalresult:String,
                      var Response:String)
data class Harrypotter(var Title:String,
                       var Year:String,
                       var imdbID:String,
                       var Type:String,
                       var Poster:String)

@bunays
Copy link

bunays commented Dec 21, 2019

KOTLINE
data class Demoo(var Search:DemooSearch)
data class DemooSearch(var Search:ArrayList<Harrypotter>,
                       var totalResult:String,
                       var Responce:String)

data class Harrypotter( var Title:String,
                        var Year:String,
                        var imdbID:String,
                        var Type:String,
                        var Poster:String
                        ) 


@amruthav123
Copy link

amruthav123 commented Dec 21, 2019

kotlin
package com.example.android.myapplication 
data class Serch(var search:DemoSerch)
data class DemoSerch(var serch:ArrayList<Harrypotter>)
data class Harrypotter(var Title:String,
           var year:String,
           var imdbID:String,
           var Type:String,
          var poster:String

@ajithvgiri
Copy link
Author

ajithvgiri commented Dec 21, 2019

data class MovieSearchResult(var Search:ArrayList<Movie>,var totalResults:String,var Response:String)
data class Movie(var Title:String,var Year:String, var imdbID:String,var Type:String,var Poster:String )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment