Skip to content

Instantly share code, notes, and snippets.

@burntcookie90
Created December 24, 2014 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burntcookie90/7a312482d3c118922deb to your computer and use it in GitHub Desktop.
Save burntcookie90/7a312482d3c118922deb to your computer and use it in GitHub Desktop.
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