internal GroupMessage(BuddyClient client, InternalModels.DataContract_GroupMessage msg, MessageGroup group) { this.DateSent = Convert.ToDateTime(msg.SentDateTime, CultureInfo.InvariantCulture); this.Group = group; this.Latitude = client.TryParseDouble(msg.Latitude); this.Longitude = client.TryParseDouble(msg.Longitude); this.FromUserID = Int32.Parse(msg.FromUserID); this.Text = msg.MessageText; }