/// <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; }
/// <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; }