Java Unifier Example

说明

java unifier示例是从最受好评的开源项目中提取的实现代码,你可以参考下面示例的使用方式。

编程语言: Java

命名空间/包名称: com.mubaiwa.trust.heartfeltministries.model

示例#1
文件: MainActivity.java项目: trustmub/HearfeltMinistries

  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;
  }

示例#2
文件: MainActivity.java项目: trustmub/HearfeltMinistries

  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);
  }

示例#3
文件: MainActivity.java项目: trustmub/HearfeltMinistries

 @OnClick(R.id.zonesButton)
 public void startZonesActivity(View view) {
   Intent intent = new Intent(this, ZonesActivity.class);
   intent.putExtra(ZONE_UNIFIER, mUnifier.getZoneUnified());
   startActivity(intent);
 }

示例#4
文件: MainActivity.java项目: trustmub/HearfeltMinistries

 @OnClick(R.id.eventsButton)
 public void startEventsActivity(View view) {
   Intent intent = new Intent(this, EventsActivity.class);
   intent.putExtra(EVENT_UNIFIER, mUnifier.getEventUnified());
   startActivity(intent);
 }

展开阅读全文