コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: Datatypes.cs プロジェクト: Throy/derp-octo-robot
 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;
 }
コード例 #3
0
ファイル: Datatypes.cs プロジェクト: Throy/derp-octo-robot
 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;
 }
コード例 #4
0
 public void dontAttendMeeting(DTMeeting dtMeeting)
 {
     ControllersHub.Instance.getIMeetingsController().dontAttendMeeting(DTToClass.DTToMeeting(dtMeeting));
 }
コード例 #5
0
 public void deleteMeetingNotification(DTMeeting dtMeeting)
 {
     ControllersHub.Instance.getIMeetingsController().deleteMeetingNotification(DTToClass.DTToMeeting(dtMeeting));
 }
コード例 #6
0
 public void unconfirmAttendMeeting(DTMeeting dtMeeting)
 {
     ControllersHub.Instance.getIMeetingsController().unconfirmAttendanceMeeting(DTToClass.DTToMeeting(dtMeeting));
 }