Exemple #1
0
 public MeetingDataItem(string uniqueId, String title, String subtitle, String imagePath, String description,
                        String content, MeetingDataGroup group, DateTime startsAt, string url, double latitude,
                        double longtitude)
     : base(uniqueId, title, subtitle, imagePath, description, latitude, longtitude)
 {
     _content  = content;
     _group    = group;
     _startsAt = startsAt;
     _url      = url;
 }
 public MeetingDataItem(string uniqueId, String title, String subtitle, String imagePath, String description,
                        String content, MeetingDataGroup group, DateTime startsAt, string url, double latitude,
                        double longtitude)
     : base(uniqueId, title, subtitle, imagePath, description, latitude, longtitude)
 {
     _content = content;
     _group = group;
     _startsAt = startsAt;
     _url = url;
 }
        private void HandleData(string json)
        {
            var meetings = JsonConvert.DeserializeObject <Meeting[]>(json);

            foreach (var group in meetings.GroupBy(x => GetGroupKey(x)))
            {
                var month = new MeetingDataGroup(group.Key);

                foreach (Meeting meeting in group)
                {
                    month.Items.Add(new MeetingDataItem(meeting.ID.ToString(), meeting.Title,
                                                        meeting.Location + " - " + meeting.Organizer, null,
                                                        meeting.Description, meeting.Description, month,
                                                        meeting.Starts_At, meeting.Url, meeting.Latitude,
                                                        meeting.Longtitude));
                }

                AllGroups.Add(month);
            }
        }
        private void HandleData(string json)
        {
            var meetings = JsonConvert.DeserializeObject<Meeting[]>(json);

            foreach (var group in meetings.GroupBy(x => GetGroupKey(x)))
            {
                var month = new MeetingDataGroup(group.Key);

                foreach (Meeting meeting in group)
                {
                    month.Items.Add(new MeetingDataItem(meeting.ID.ToString(), meeting.Title,
                                                        meeting.Location + " - " + meeting.Organizer, null,
                                                        meeting.Description, meeting.Description, month,
                                                        meeting.Starts_At, meeting.Url, meeting.Latitude,
                                                        meeting.Longtitude));
                }

                AllGroups.Add(month);
            }
        }