예제 #1
0
 public CurrentUser(UserShortDescription instaUserShortDescription)
 {
     Pk               = instaUserShortDescription.Pk;
     UserName         = instaUserShortDescription.UserName;
     FullName         = instaUserShortDescription.FullName;
     IsPrivate        = instaUserShortDescription.IsPrivate;
     ProfilePicture   = instaUserShortDescription.ProfilePicture;
     ProfilePictureId = instaUserShortDescription.ProfilePictureId;
     IsVerified       = instaUserShortDescription.IsVerified;
 }
예제 #2
0
        public InstaUser(UserShortDescription instaUserShortDescription)
        {
            if (instaUserShortDescription == null)
            {
                throw new ArgumentNullException(nameof(instaUserShortDescription));
            }

            Pk               = instaUserShortDescription.Pk;
            UserName         = instaUserShortDescription.UserName;
            FullName         = instaUserShortDescription.FullName;
            IsPrivate        = instaUserShortDescription.IsPrivate;
            ProfilePicture   = instaUserShortDescription.ProfilePicture;
            ProfilePictureId = instaUserShortDescription.ProfilePictureId;
            IsVerified       = instaUserShortDescription.IsVerified;
        }
 public bool Equals(UserShortDescription user)
 {
     return(Pk == user?.Pk);
 }