private void UpdateWith(ProfileStatisticInfo info) { ImageUrl = new Uri(string.Format(ProfileUriPattern, ProfileId), UriKind.Absolute); Nickname = info.Nickname; Creator = info.Nickname; Biography = info.Biography; Online = info.Online; PictureCount = info.PictureCount; CommentCount = info.CommentCount; HitCount = info.HitCount; LikeCount = info.LikeCount; DislikeCount = info.DislikeCount; FollowerCount = info.FollowerCount; }
public ProfileStatisticViewModel(string profileUriPattern, ProfileStatisticInfo info) { ProfileId = info.ProfileId; ProfileUriPattern = profileUriPattern; UpdateWith(info); }