public void Reload(User User) { try { if (User == null) return; this.ContributorsEnabled = User.ContributorsEnabled; this.CreatedDate = User.CreatedDate; base.RaisePropertyChanged("CreatedDateLongString"); this.DefaultProfile = User.DefaultProfile; this.DefaultProfileImage = User.DefaultProfileImage; this.Description = User.Description; this.FollowRequestSent = User.FollowRequestSent; this.Id = User.Id; this.IsFollowedBy = User.IsFollowedBy || App.AppState.CurrentActiveAccount != null && App.AppState.CurrentActiveAccount.Cache.CachedUsers.ContainsKey("@" + User.ScreenName.ToLower()); this.IsFollowing = User.IsFollowing; this.IsGeoEnabled = User.IsGeoEnabled; this.IsProfileBackgroundTiled = User.IsProfileBackgroundTiled; this.IsProtected = User.IsProtected; this.IsTranslator = User.IsTranslator; this.Language = User.Language; this.ListedCount = User.ListedCount; this.Location = User.Location; this.Name = User.Name; this.NumberOfFavorites = User.NumberOfFavorites; this.NumberOfFollowers = User.NumberOfFollowers; this.NumberOfFriends = User.NumberOfFriends; this.NumberOfStatuses = User.NumberOfStatuses; this.ProfileBannerLocation = User.ProfileBannerLocation; this.ProfileBackgroundColor = User.ProfileBackgroundColor; this.ProfileBackgroundImageLocation = User.ProfileBackgroundImageLocation; this.ProfileBackgroundImageSecureLocation = User.ProfileBackgroundImageSecureLocation; this.ProfileImageLocation = User.ProfileImageLocation; this.ProfileImageSecureLocation = User.ProfileImageSecureLocation; this.ProfileLinkColor = User.ProfileLinkColor; this.ProfileSidebarBorderColor = User.ProfileSidebarBorderColor; this.ProfileSidebarFillColor = User.ProfileSidebarFillColor; this.ProfileTextColor = User.ProfileTextColor; this.ProfileUseBackgroundImage = User.ProfileUseBackgroundImage; this.ScreenName = User.ScreenName; this.ShowAllInlineMedia = User.ShowAllInlineMedia; this.Status = User.Status; this.StringId = User.StringId; this.TimeZone = User.TimeZone; this.TimeZoneOffset = User.TimeZoneOffset; this.Verified = User.Verified; this.Website = User.Website; this.WithheldInCountries = User.WithheldInCountries; this.WithheldScope = User.WithheldScope; } catch (Exception ex) { } }
private void ProfileLink(User user) { Messenger.Default.Send<GenericMessage<object>>(new GenericMessage<object>((object) user.ScreenName), (object) this.MultiAccountifyToken((Enum) ViewModelMessages.ShowUserProfile)); }
public MetroTwitUser(User User) { this.Reload(User); }