Skip to content

Instantly share code, notes, and snippets.

@nikhilbansal97
Created December 29, 2017 04:36
Show Gist options
  • Save nikhilbansal97/1d622a13900d5ebfdbb4ad80e9403a45 to your computer and use it in GitHub Desktop.
Save nikhilbansal97/1d622a13900d5ebfdbb4ad80e9403a45 to your computer and use it in GitHub Desktop.
package com.example.nikhil.popularmovies;
public class Movie {
// Store the id of the movie poster
private int mImageDrawable;
// Store the name of the movie
private String mName;
// Store the release date of the movie
private String mRelease;
// Constructor that is used to create an instance of the Movie object
public Movie(int mImageDrawable, String mName, String mRelease) {
this.mImageDrawable = mImageDrawable;
this.mName = mName;
this.mRelease = mRelease;
}
public int getmImageDrawable() {
return mImageDrawable;
}
public void setmImageDrawable(int mImageDrawable) {
this.mImageDrawable = mImageDrawable;
}
public String getmName() {
return mName;
}
public void setmName(String mName) {
this.mName = mName;
}
public String getmRelease() {
return mRelease;
}
public void setmRelease(String mRelease) {
this.mRelease = mRelease;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment