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