/// <summary> /// When the current user has previously rated an item, replace the average user rating with user's /// own rating. /// </summary> /// <param name="metaItem">The meta item. It must be a <see cref="MetadataItemName.Rating" /> item.</param> /// <param name="moProfiles"></param> private static void ReplaceAvgRatingWithUserRating(MetaItem metaItem, IMediaObjectProfileCollection moProfiles) { var moProfile = moProfiles.Find(metaItem.MediaId); if (moProfile != null) { metaItem.Desc = Resources.GalleryServerPro.UC_Metadata_UserRated_Rating_Lbl; metaItem.Value = moProfile.Rating; } }
/// <summary> /// Initializes a new instance of the <see cref="UserProfile" /> class. /// </summary> public UserProfile() { _galleryProfiles = new UserGalleryProfileCollection(); _albumProfiles = new AlbumProfileCollection(); _mediaObjectProfiles = new MediaObjectProfileCollection(); }