Android Open Source - Recipe-Puppy-Android Recipe Item






From Project

Back to project page Recipe-Puppy-Android.

License

The source code is released under:

Apache License

If you think the Android project Recipe-Puppy-Android 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

package com.jerin.magicrecipe.data;
// w ww.jav a2 s .  c  o  m
import android.os.Parcel;
import android.os.Parcelable;

/**
 * Class representing a Recipe Item.
 * 
 * @author jerin
 * 
 */
public class RecipeItem implements Parcelable {

  /**
   * The title of the recipe.
   */
  private String mRecipeTitle;

  /**
   * The thumbnail url of the recipe.
   */
  private String mRecipeImageUrl;

  /**
   * The recipe's description.
   */
  private String mRecipeIngredients;

  public RecipeItem() {
  }

  public String getTitle() {
    return mRecipeTitle;
  }

  public void setTitle(String mTitle) {
    this.mRecipeTitle = mTitle;
  }

  public String getImageUrl() {
    return mRecipeImageUrl;
  }

  public void setImageUrl(String mUrl) {
    this.mRecipeImageUrl = mUrl;
  }

  public String getIngredients() {
    return mRecipeIngredients;
  }

  public void setIngredients(String ingredients) {
    this.mRecipeIngredients = ingredients;
  }

  @Override
  public int describeContents() {
    // TODO Auto-generated method stub
    return 0;
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mRecipeTitle);
    dest.writeString(mRecipeIngredients);
    dest.writeString(mRecipeImageUrl);
  }

}




Java Source Code List

com.jerin.magicrecipe.MainActivity.java
com.jerin.magicrecipe.NavigationDrawerFragment.java
com.jerin.magicrecipe.adapters.RecipePagerAdapter.java
com.jerin.magicrecipe.data.MagicRecipeConstants.java
com.jerin.magicrecipe.data.RecipeItem.java
com.jerin.magicrecipe.fragments.RecipePageFragment.java
com.jerin.magicrecipe.fragments.RecipeSearchFragment.java
com.jerin.magicrecipe.fragments.RecipeViewPagerFragment.java
com.jerin.utilities.RequestTask.java
com.jerin.utilities.Utilities.java