internal Profile()

in Facebook.Unity/Profile.cs [46:82]


        internal Profile(
            string userID,
            string firstName,
            string middleName,
            string lastName,
            string name,
            string email,
            string imageURL,
            string linkURL,
            string[] friendIDs,
            string birthday,
            UserAgeRange ageRange,
            FBLocation hometown,
            FBLocation location,
            string gender)
        {
            this.UserID = userID;
            this.FirstName = firstName;
            this.MiddleName = middleName;
            this.LastName = lastName;
            this.Name = name;
            this.Email = email;
            this.ImageURL = imageURL;
            this.LinkURL = linkURL;
            this.FriendIDs = friendIDs ?? new string[] { };
            long birthdayTimestamp;
            if (long.TryParse(birthday, out birthdayTimestamp))
            {
                this.Birthday = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc)
                    .AddMilliseconds(birthdayTimestamp * 1000)
                    .ToLocalTime();
            }
            this.AgeRange = ageRange;
            this.Hometown = hometown;
            this.Location = location;
            this.Gender = gender;
        }