private Unifier parseUnifierDetails(String jsonData) throws JSONException { Unifier unifier = new Unifier(); unifier.setCurrentEvent(getCurrentDetails(jsonData)); unifier.setEventUnified(getEventUnified(jsonData)); // TODO create the getZoneUnified class after testing // unifier.setZoneUnified(getZoneUnified(jsonData)); return unifier; }
private void updateDisplay() { CurrentEvent currentEvent = mUnifier.getCurrentEvent(); mTheme.setText(currentEvent.getTheme()); mStartTimeValue.setText(currentEvent.getStartTime() + " HRS"); mEndTimeValue.setText(currentEvent.getEndTime() + " HRS"); mDateValue.setText("On " + currentEvent.getDate()); mVenueValue.setText("At " + currentEvent.getVenue()); mAddressValue.setText(currentEvent.getAddress()); mDescriptionValue.setText(currentEvent.getDescription()); // Drawable drawable = getResources().getDrawable(mCurrentWeather.getIconId()); // mIconImageView.setImageDrawable(drawable); }
@OnClick(R.id.zonesButton) public void startZonesActivity(View view) { Intent intent = new Intent(this, ZonesActivity.class); intent.putExtra(ZONE_UNIFIER, mUnifier.getZoneUnified()); startActivity(intent); }
@OnClick(R.id.eventsButton) public void startEventsActivity(View view) { Intent intent = new Intent(this, EventsActivity.class); intent.putExtra(EVENT_UNIFIER, mUnifier.getEventUnified()); startActivity(intent); }