public void createMeeting(DTMeeting dtMeeting) { // create the theme categories collection. Collection<CategoriasTematica> themeCategories = new Collection<CategoriasTematica>(); if (dtMeeting.themeCategories != null) { foreach (DTThemeCategoryMeetings dtThemeCat in dtMeeting.themeCategories) { themeCategories.Add(DTToClass.DTToThemeCategory(dtThemeCat)); } } // create the meeting. ControllersHub.Instance.getIMeetingsController().createMeeting(DTToClass.DTToMeeting(dtMeeting), themeCategories); }
public static Convocatoria DTToMeeting (DTMeeting dtMeeting) { Convocatoria meeting = new Convocatoria(); meeting.id = dtMeeting.id; meeting.idMovimiento = dtMeeting.idMovement; meeting.titulo = dtMeeting.name; meeting.descripcion = dtMeeting.description; meeting.latitud = dtMeeting.locationLati; meeting.longitud = dtMeeting.locationLong; meeting.minQuorum = dtMeeting.minQuorum; meeting.logo = dtMeeting.imagePath; meeting.fechaInicio = dtMeeting.dateBegin; meeting.fechaFin = dtMeeting.dateEnd; meeting.cantAsistencias = dtMeeting.numberAttendants; meeting.miAsistencia = dtMeeting.myAttendance; meeting.estaConfirmada = dtMeeting.isConfirmed; meeting.estaActiva = dtMeeting.isActive; return meeting; }
public static DTMeeting MeetingToDT (Convocatoria meeting) { DTMeeting dtMeeting = new DTMeeting(); dtMeeting.id = meeting.id; dtMeeting.idMovement = meeting.idMovimiento; dtMeeting.name = meeting.titulo; dtMeeting.description = meeting.descripcion + " "; dtMeeting.locationLati = (float)meeting.latitud; dtMeeting.locationLong = (float)meeting.longitud; dtMeeting.minQuorum = meeting.minQuorum == null? 0: meeting.minQuorum.Value; dtMeeting.imagePath = meeting.logo; dtMeeting.dateBegin = meeting.fechaInicio; dtMeeting.dateEnd = meeting.fechaFin; dtMeeting.numberAttendants = meeting.cantAsistencias == null ? 0 : meeting.cantAsistencias.Value; dtMeeting.myAttendance = meeting.miAsistencia == null ? 0 : meeting.miAsistencia.Value; dtMeeting.isConfirmed = meeting.estaConfirmada == null ? false : meeting.estaConfirmada.Value; dtMeeting.isActive = meeting.estaActiva == null ? false : meeting.estaActiva.Value; dtMeeting.imagePath = meeting.logo == null ? "" : meeting.logo; return dtMeeting; }
public void dontAttendMeeting(DTMeeting dtMeeting) { ControllersHub.Instance.getIMeetingsController().dontAttendMeeting(DTToClass.DTToMeeting(dtMeeting)); }
public void deleteMeetingNotification(DTMeeting dtMeeting) { ControllersHub.Instance.getIMeetingsController().deleteMeetingNotification(DTToClass.DTToMeeting(dtMeeting)); }
public void unconfirmAttendMeeting(DTMeeting dtMeeting) { ControllersHub.Instance.getIMeetingsController().unconfirmAttendanceMeeting(DTToClass.DTToMeeting(dtMeeting)); }