32 lines
730 B
C#
32 lines
730 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text;
|
|
|
|
namespace gehGassi.Dto.Common
|
|
{
|
|
/// <summary>
|
|
/// Dto für ein Rating
|
|
/// </summary>
|
|
public class RatingStatisticsDto
|
|
{
|
|
/// <summary>
|
|
/// Anzahl der Bewertungen
|
|
/// </summary>
|
|
[Required]
|
|
public int TotalRatings { get; set; }
|
|
|
|
/// <summary>
|
|
/// Anzahl der Punkte die vergeben wurden
|
|
/// </summary>
|
|
[Required]
|
|
public decimal TotalPoints { get; set; }
|
|
|
|
/// <summary>
|
|
/// Durchschnittliche Bewertung
|
|
/// </summary>
|
|
[Required]
|
|
public decimal AverageRating { get; set; }
|
|
}
|
|
}
|