Created
December 24, 2014 06:50
-
-
Save burntcookie90/7a312482d3c118922deb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.dwak.androidtracker.viewmodel; | |
import io.dwak.tracker.TrackerDependency; | |
/** | |
* Created by vishnu on 12/23/14. | |
*/ | |
public class FavoriteFoodViewModel { | |
public static String PIZZA = "PIZZA"; | |
public static String MANGOES = "MANGOES"; | |
@Dependency private boolean mIsPizza; | |
@Dependency private String mFavoriteFood; | |
@Dependency private int mFavoritePercentage; | |
public FavoriteFoodViewModel(String favoriteFood, int favoritePercentage) { | |
mIsPizza = PIZZA.equals(favoriteFood); | |
mFavoriteFood = favoriteFood; | |
mFavoritePercentage = favoritePercentage; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment