private void initOfferList() { SellTapOffer.getAllOffers( new LoadingCallback<BackendlessCollection<SellTapOffer>>(this, "Getting Offers", true) { @Override public void handleResponse(BackendlessCollection<SellTapOffer> loadedoffers) { mBackendlessCollection = loadedoffers; convertToList(loadedoffers); super.handleResponse(loadedoffers); } }); }
private void navigateToOffer(SellTapOffer offer) { Intent offerDetail = new Intent(MainActivity.this, ViewOfferActivity.class); offerDetail.putExtra("offerId", offer.getObjectId()); startActivity(offerDetail); }