Android Open Source - FlibityBoop Media Infos






From Project

Back to project page FlibityBoop.

License

The source code is released under:

Apache License

If you think the Android project FlibityBoop listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * IFT2905 : Interface personne machine/*from w ww.ja  v  a  2  s .  c o m*/
 * Projet de session: FlibityBoop.
 * Team: Vincent CABELI, Henry LIM, Pamela MEHANNA, Emmanuel NOUTAHI, Olivier TASTET
 * @author Emmanuel Noutahi, Vincent Cabeli
 */

package com.maclandrol.flibityboop;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Interface MediaInfos, implment par rsultats de recherche de chaque API 
 */
public interface MediaInfos extends Parcelable, Serializable {

  public String getTitle();
  
  public String getDetailedTitle();

  public int getScore();

  public boolean isMovie();

  public boolean isShow();

  public API.MediaType getType();

  public int getID();

  public String getDate();

  public String getOriginalPosterURL();

  public HashMap<String, String> getAdditionalFeatures();

  public ArrayList<Critics> getCritics();

  public ArrayList<? extends MediaInfos> getSimilar();

  public String getPosterURL(int i);

  public static final Parcelable.Creator<MediaInfos> CREATOR = new Creator<MediaInfos>() {

    @Override
    public MediaInfos createFromParcel(Parcel source) {
      int type = source.readInt();
      if (type == 1)
        return new RTSearch(source, false);
      else if (type == 2){
        return new TraktTVSearch(source, false);
        
      }
      else if (type == 3)
        return new TMDBSearch(source, false);
      return null;
    }

    @Override
    public MediaInfos[] newArray(int size) {
      return new MediaInfos[size];
    }

  };
}




Java Source Code List

com.maclandrol.flibityboop.API.java
com.maclandrol.flibityboop.BaseActivity.java
com.maclandrol.flibityboop.Critics.java
com.maclandrol.flibityboop.DBHelperMedia.java
com.maclandrol.flibityboop.FavoriteActivity.java
com.maclandrol.flibityboop.FileCache.java
com.maclandrol.flibityboop.ImageLoader.java
com.maclandrol.flibityboop.MainActivity.java
com.maclandrol.flibityboop.MediaAdapter.java
com.maclandrol.flibityboop.MediaContentProvider.java
com.maclandrol.flibityboop.MediaDetails.java
com.maclandrol.flibityboop.MediaInfos.java
com.maclandrol.flibityboop.Media.java
com.maclandrol.flibityboop.MemoryCache.java
com.maclandrol.flibityboop.MovieFavoriteCursorAdapter.java
com.maclandrol.flibityboop.MovieListFragment.java
com.maclandrol.flibityboop.RottenTomatoes.java
com.maclandrol.flibityboop.SearchActivity.java
com.maclandrol.flibityboop.SearchSuggestionProvider.java
com.maclandrol.flibityboop.SectionListAdapter.java
com.maclandrol.flibityboop.SettingActivity.java
com.maclandrol.flibityboop.ShowFavoriteCursorAdapter.java
com.maclandrol.flibityboop.TVListFragment.java
com.maclandrol.flibityboop.Tastekid.java
com.maclandrol.flibityboop.TheMovieDB.java
com.maclandrol.flibityboop.TraktTV.java
com.maclandrol.flibityboop.Utils.java