private MeetupGroup(JObject obj) : base(obj)
 {
     Id          = obj.GetInt64("id");
     Name        = obj.GetString("name");
     Link        = obj.GetString("link");
     UrlName     = obj.GetString("urlname");
     Description = obj.GetString("description");
     Latitude    = obj.GetDouble("lat");
     Longitude   = obj.GetDouble("lon");
     NextEvent   = obj.GetObject("next_event", MeetupEvent.Parse);
     GroupPhoto  = obj.GetObject("group_photo", MeetupPhoto.Parse);
     KeyPhoto    = obj.GetObject("key_photo", MeetupPhoto.Parse);
 }
Beispiel #2
0
 private MeetupEvent(JObject obj) : base(obj)
 {
     Created       = obj.HasValue("created") ? obj.GetInt64("created", ParseUnixTimestamp) : null;
     Duration      = obj.GetDouble("duration", TimeSpan.FromMilliseconds);
     Id            = obj.GetString("id");
     Name          = obj.GetString("name");
     Time          = obj.HasValue("time") ? obj.GetInt64("time", ParseUnixTimestamp) : null;
     Updated       = obj.HasValue("updated") ? obj.GetInt64("updated", ParseUnixTimestamp) : null;
     Group         = obj.GetObject("group", MeetupGroup.Parse);
     Venue         = obj.GetObject("venue", MeetupVenue.Parse);
     Link          = obj.GetString("link");
     Description   = obj.GetString("description");
     Visibility    = obj.HasValue("visiblity") ? obj.GetEnum <MeetupEventVisibility>("visibility") : MeetupEventVisibility.Unspecified;
     FeaturedPhoto = obj.GetObject("featured_photo", MeetupPhoto.Parse);
 }