Skip to content

Instantly share code, notes, and snippets.

@orhanobut
Created September 22, 2015 18:21
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 orhanobut/b6e319f6deb924a3f294 to your computer and use it in GitHub Desktop.
Save orhanobut/b6e319f6deb924a3f294 to your computer and use it in GitHub Desktop.
public class ProductListActivity extends Activity implements FragmentListener{
@Override public void onRefreshData(String uuid) {
apiService.getProducts(new Callback() {
@Override void onSuccess(List<Product> list){
EventBus.getDefault().post(new ProductListSuccessEvent(uuid, list));
}
@Override void onFail(Error error){
EventBus.getDefault().post(new ProductListFailEvent(uuid, error));
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment