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; }
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); }