// Path: app/src/main/java/com/bdc/ociney/modele/AllocineResponse.java
// public class AllocineResponse {
// 
//     @Expose
//     private Feed feed;
// 
//     @Expose
//     private Movie movie;
// 
//     @Expose
//     private Theater theater;
// 
//     @Expose
//     private PersonFull person;
// 
//     public PersonFull getPerson() {
//         return person;
//     }
// 
//     public void setPerson(PersonFull person) {
//         this.person = person;
//     }
// 
//     public Feed getFeed() {
//         return feed;
//     }
// 
//     public void setFeed(Feed feed) {
//         this.feed = feed;
//     }
// 
//     public Movie getMovie() {
//         return movie;
//     }
// 
//     public void setMovie(Movie movie) {
//         this.movie = movie;
//     }
// 
//     public Theater getTheater() {
//         return theater;
//     }
// 
//     public void setTheater(Theater theater) {
//         this.theater = theater;
//     }
// 
//     @Override
//     public String toString() {
//         return "Field{" +
//                 "feed=" + feed +
//                 ", movie=" + movie +
//                 ", person=" + person +
//                 ", theater=" + theater +
//                 '}';
//     }
// }
// 
// Path: app/src/main/java/com/bdc/ociney/modele/AllocineResponseSmall.java
// public class AllocineResponseSmall {
// 
//     @Expose
//     private FeedSmall feed;
// 
//     @Expose
//     private Movie movie;
// 
//     @Expose
//     private PersonSmall person;
// 
//     public PersonSmall getPerson() {
//         return person;
//     }
// 
//     public void setPerson(PersonSmall person) {
//         this.person = person;
//     }
// 
//     public FeedSmall getFeed() {
//         return feed;
//     }
// 
//     public void setFeed(FeedSmall feed) {
//         this.feed = feed;
//     }
// 
//     public Movie getMovie() {
//         return movie;
//     }
// 
//     public void setMovie(Movie movie) {
//         this.movie = movie;
//     }
// 
//     @Override
//     public String toString() {
//         return "Field{" +
//                 "feed=" + feed +
//                 ", movie=" + movie +
//                 ", person=" + person +
//                 '}';
//     }
// }


import com.bdc.ociney.modele.AllocineResponse;
import com.bdc.ociney.modele.AllocineResponseSmall;
import retrofit.http.GET;
import retrofit.http.Query;
    public static String COUNT = "count";
    public static String ORDER = "order";
    public static String FILTER = "filter";
    public static String FORMAT = "format";
    public static String DEFAULT_PARAMS = PARTNER + "=" + ALLOCINE_PARTNER_KEY + "&" + CODE + "=" + APP_ID + "&" + FORMAT + "=" + FORMAT_JSON;
    public static String DEFAULT_PARAMS_MINUS_CODE = PARTNER + "=" + ALLOCINE_PARTNER_KEY + "&" + FORMAT + "=" + FORMAT_JSON;
    public static String SED = "sed";
    public static String SIG = "sig";
    public static String Q = "q";
    public static String PAGE = "page";
    public static String PROFILE = "profile";
    public static String ZIP = "zip";
    public static String LAT = "lat";
    public static String LONG = "long";
    public static String RADIUS = "radius";
    public static String THEATER = "theater";
    public static String LOCATION = "location";
    public static String TYPE = "type";
    public static String MOVIE = "movie";
    public static String DATE = "date";
    public static String THEATERS = "theaters";
    public static String SUBJECT = "subject";
    public static String MEDIAFMT = "mediafmt";

    //---------------------------------------------------------------------------------------------

    /**
     * Recherche
     */
    @GET("/search?" + DEFAULT_PARAMS_MINUS_CODE)
// Path: app/src/main/java/com/bdc/ociney/modele/AllocineResponse.java
// public class AllocineResponse {
// 
//     @Expose
//     private Feed feed;
// 
//     @Expose
//     private Movie movie;
// 
//     @Expose
//     private Theater theater;
// 
//     @Expose
//     private PersonFull person;
// 
//     public PersonFull getPerson() {
//         return person;
//     }
// 
//     public void setPerson(PersonFull person) {
//         this.person = person;
//     }
// 
//     public Feed getFeed() {
//         return feed;
//     }
// 
//     public void setFeed(Feed feed) {
//         this.feed = feed;
//     }
// 
//     public Movie getMovie() {
//         return movie;
//     }
// 
//     public void setMovie(Movie movie) {
//         this.movie = movie;
//     }
// 
//     public Theater getTheater() {
//         return theater;
//     }
// 
//     public void setTheater(Theater theater) {
//         this.theater = theater;
//     }
// 
//     @Override
//     public String toString() {
//         return "Field{" +
//                 "feed=" + feed +
//                 ", movie=" + movie +
//                 ", person=" + person +
//                 ", theater=" + theater +
//                 '}';
//     }
// }
// 
// Path: app/src/main/java/com/bdc/ociney/modele/AllocineResponseSmall.java
// public class AllocineResponseSmall {
// 
//     @Expose
//     private FeedSmall feed;
// 
//     @Expose
//     private Movie movie;
// 
//     @Expose
//     private PersonSmall person;
// 
//     public PersonSmall getPerson() {
//         return person;
//     }
// 
//     public void setPerson(PersonSmall person) {
//         this.person = person;
//     }
// 
//     public FeedSmall getFeed() {
//         return feed;
//     }
// 
//     public void setFeed(FeedSmall feed) {
//         this.feed = feed;
//     }
// 
//     public Movie getMovie() {
//         return movie;
//     }
// 
//     public void setMovie(Movie movie) {
//         this.movie = movie;
//     }
// 
//     @Override
//     public String toString() {
//         return "Field{" +
//                 "feed=" + feed +
//                 ", movie=" + movie +
//                 ", person=" + person +
//                 '}';
//     }
// }


// Path: app/src/main/java/com/bdc/ociney/service/AllocineService.java
import com.bdc.ociney.modele.AllocineResponse;
import com.bdc.ociney.modele.AllocineResponseSmall;
import retrofit.http.GET;
import retrofit.http.Query;

    public static String COUNT = "count";
    public static String ORDER = "order";
    public static String FILTER = "filter";
    public static String FORMAT = "format";
    public static String DEFAULT_PARAMS = PARTNER + "=" + ALLOCINE_PARTNER_KEY + "&" + CODE + "=" + APP_ID + "&" + FORMAT + "=" + FORMAT_JSON;
    public static String DEFAULT_PARAMS_MINUS_CODE = PARTNER + "=" + ALLOCINE_PARTNER_KEY + "&" + FORMAT + "=" + FORMAT_JSON;
    public static String SED = "sed";
    public static String SIG = "sig";
    public static String Q = "q";
    public static String PAGE = "page";
    public static String PROFILE = "profile";
    public static String ZIP = "zip";
    public static String LAT = "lat";
    public static String LONG = "long";
    public static String RADIUS = "radius";
    public static String THEATER = "theater";
    public static String LOCATION = "location";
    public static String TYPE = "type";
    public static String MOVIE = "movie";
    public static String DATE = "date";
    public static String THEATERS = "theaters";
    public static String SUBJECT = "subject";
    public static String MEDIAFMT = "mediafmt";

    //---------------------------------------------------------------------------------------------

    /**
     * Recherche
     */
    @GET("/search?" + DEFAULT_PARAMS_MINUS_CODE)
    AllocineResponse search(@Query(Q) String recherche,