internal Picture(BuddyClient client, AuthenticatedUser user, InternalModels.DataContract_PhotoList photo) : base(client, photo.FullPhotoURL, photo.ThumbnailPhotoURL, client.TryParseDouble(photo.Latitude), client.TryParseDouble(photo.Longitude), photo.PhotoComment, photo.ApplicationTag, photo.AddedDateTime, Int32.Parse(photo.PhotoID), user) { }
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; }
internal PicturePublic(BuddyClient client, User user, InternalModels.DataContract_PublicPhotoSearch photo, int userId) : base(client) { if (photo == null) throw new ArgumentNullException("photo"); this.FullUrl = photo.FullPhotoURL; this.ThumbnailUrl = photo.ThumbnailPhotoURL; this.Latitude = this.Client.TryParseDouble(photo.Latitude); this.Longitude = this.Client.TryParseDouble(photo.Longitude); this.AddedOn = Convert.ToDateTime(photo.PhotoAdded, CultureInfo.InvariantCulture); this.AppTag = photo.ApplicationTag; this.PhotoID = Int32.Parse(photo.PhotoID); this.User = user; this.UserId = userId; this.DistanceInKilometers = client.TryParseDouble(photo.DistanceInKilometers); this.DistanceInMeters = client.TryParseDouble(photo.DistanceInMeters); this.DistanceInMiles = client.TryParseDouble(photo.DistanceInMiles); this.DistanceInYards = client.TryParseDouble(photo.DistanceInYards); }
internal GamePlayer(BuddyClient client, AuthenticatedUser user, InternalModels.DataContract_GamePlayerSearchResults info) { if (client == null) throw new ArgumentNullException("client"); if (user == null) throw new ArgumentNullException("user"); if (info == null) throw new ArgumentNullException("info"); this.UserID = Int32.Parse(info.UserID); this.ApplicationTag = info.ApplicationTag; this.BoardName = info.PlayerBoardName; this.CreatedOn = Convert.ToDateTime(info.PlayerDate, CultureInfo.InvariantCulture); this.Latitude = client.TryParseDouble(info.PlayerLatitude); this.Longitude = client.TryParseDouble(info.PlayerLongitude); this.Name = info.PlayerName; this.DistanceInKilometers = client.TryParseDouble(info.DistanceInKilometers); this.DistanceInMeters = client.TryParseDouble(info.DistanceInMeters); this.DistanceInMiles = client.TryParseDouble(info.DistanceInMiles); this.DistanceInYards = client.TryParseDouble(info.DistanceInYards); this.Rank = info.PlayerRank; }
internal GamePlayer(BuddyClient client, AuthenticatedUser user, InternalModels.DataContract_GamePlayerInfo info) { if (client == null) throw new ArgumentNullException("client"); if (user == null) throw new ArgumentNullException("user"); if (info == null) throw new ArgumentNullException("info"); this.UserID = user.ID; this.ApplicationTag = info.ApplicationTag; this.BoardName = info.PlayerBoardName; this.CreatedOn = Convert.ToDateTime(info.PlayerDate, CultureInfo.InvariantCulture); this.Latitude = client.TryParseDouble(info.PlayerLatitude); this.Longitude = client.TryParseDouble(info.PlayerLongitude); this.Name = info.PlayerName; this.Rank = info.PlayerRank; }