예제 #1
0
파일: Element.cs 프로젝트: savish/rate-it
 /// <summary>
 /// Initializes a new instance of the <see cref="rateitlib.Element"/> class.
 /// </summary>
 /// <param name="name">Name.</param>
 /// <param name="description">Description.</param>
 /// <param name="rating">Rating.</param>
 public Element(string name = "", string description = "", Rating rating=null)
 {
     this.Name = name;
     this.Description = description;
     if (rating == null)
         this.Rating = new ContinuousRating ();
     else
         this.Rating = rating;
 }
예제 #2
0
파일: Survey.cs 프로젝트: savish/rate-it
 /// <summary>
 /// Initializes a new instance of the <see cref="rateitlib.Survey"/> class.
 /// </summary>
 /// <param name="name">Name.</param>
 /// <param name="description">Description.</param>
 /// <param name="rating">Rating.</param>
 /// <param name="children">Children.</param>
 public Survey(string name="", string description = "", Rating rating=null, List<IRateable> children=null)
 {
     this.Name = name;
     this.Description = description;
     if (rating == null)
         this.Rating = new ContinuousRating ();
     else
         this.Rating = rating;
     if (children == null)
         this.Children = new List<IRateable> ();
     else
         this.Children = children;
 }