Пример #1
0
 void InsertNewSongRating(FbUser user, short rating)
 {
     RatingDetails songRating = new RatingDetails(user, rating);
     AddPlaylistSongRating(songRating);
 }
Пример #2
0
 void UpdatePlaylistSongRating(RatingDetails songRating, short rating)
 {
     if (rating != songRating.Rating)
     {
         base.UpdatedAggregatedRating(songRating.Rating, rating);
         songRating.LastUpdated = DateTime.Now;
         songRating.Rating = rating;
     }
 }
Пример #3
0
 protected virtual void AddPlaylistSongRating(RatingDetails songRating)
 {
     base.AddAggregatedRating(songRating.Rating);
     songRating.LastUpdated = DateTime.Now;
     songRating.PlaylistSongRating = this;
     Details.Add(songRating);
 }