private void createShowEvent() { EditText eventNameEditText = (EditText) findViewById(R.id.admin_create_event_event_name_edit_text); DatePicker eventStartDateDatePicker = (DatePicker) findViewById(R.id.admin_create_event_event_start_date_date_picker); DatePicker eventEndDateDatePicker = (DatePicker) findViewById(R.id.admin_create_event_event_end_date_date_picker); String eventName = eventNameEditText.getText().toString(); String startDate = extractDatePickerDateString(eventStartDateDatePicker); String endDate = extractDatePickerDateString(eventEndDateDatePicker); ShowEvent createdEvent = new ShowEvent(); createdEvent.setAdminId(getModel().getCurrentUser().getId()); createdEvent.setName(eventName); createdEvent.setStartDate(startDate); createdEvent.setEndDate(endDate); Utility.showProgressDialog( this, getString(R.string.admin_creating_event_caption), getString(R.string.admin_creating_event_description)); AdminProxy.createShowEvent(this, createdEvent); }
private void addParticipant(String email) { AdminProxy.addUserToShowEvent(this, email, getCurrentEvent().getId()); }