Ejemplo n.º 1
0
 /// <summary>
 /// Extracts an item from a given instance.
 /// </summary>
 /// <param name="instanceSource">The parameter is not used.</param>
 /// <param name="instance">The instance to extract item from.</param>
 /// <returns>The extracted item.</returns>
 public TItem GetItem(TInstanceSource instanceSource, RatingTriple instance)
 {
     return(mapping.GetItem(instanceSource, instance));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Extracts a rating from a given instance.
 /// </summary>
 /// <param name="instanceSource">The parameter is not used.</param>
 /// <param name="instance">The instance to extract rating from. All ratings are integer. </param>
 /// <returns>The extracted rating.</returns>
 public int GetRating(TInstanceSource instanceSource, RatingTriple instance)
 {
     return(mapping.GetRating(instanceSource, instance));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Extracts a user from a given instance.
 /// </summary>
 /// <param name="instanceSource">The parameter is not used.</param>
 /// <param name="instance">The instance to extract user from.</param>
 /// <returns>The extracted user.</returns>
 public string GetUser(TInstanceSource instanceSource, RatingTriple instance)
 {
     return(mapping.GetUser(instanceSource, instance));
 }