Exemplo n.º 1
0
  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;
  }
Exemplo n.º 2
0
  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);
  }
Exemplo n.º 3
0
 @OnClick(R.id.zonesButton)
 public void startZonesActivity(View view) {
   Intent intent = new Intent(this, ZonesActivity.class);
   intent.putExtra(ZONE_UNIFIER, mUnifier.getZoneUnified());
   startActivity(intent);
 }
Exemplo n.º 4
0
 @OnClick(R.id.eventsButton)
 public void startEventsActivity(View view) {
   Intent intent = new Intent(this, EventsActivity.class);
   intent.putExtra(EVENT_UNIFIER, mUnifier.getEventUnified());
   startActivity(intent);
 }