/// <summary> /// Initializes a new instance of the <see cref="PlaceExecuter"/> class. /// </summary> /// <param name="placeName">Name of the place.</param> /// <param name="db">The database.</param> /// <param name="user">The user.</param> public PlaceExecuter(string placeName, DataBaseConnector db, User user) { this.placeName = placeName; this.conn = db; this.user = user; this.queriesList = HeuristicsBank.GetPlaceHeuristics(this.conn); }
/// <summary> /// Initializes a new instance of the <see cref="GenreExecuter"/> class. /// </summary> /// <param name="genreName">Name of the genre.</param> /// <param name="conn">The connection.</param> /// <param name="user">The user.</param> public GenreExecuter(string genreName, DataBaseConnector conn, User user) { this.genreName = genreName; this.conn = conn; this.user = user; this.queriesList = HeuristicsBank.GetGenreHeuristics(this.conn); }
/// <summary> /// Initializes a new instance of the <see cref="YearExecuter"/> class. /// </summary> /// <param name="db">The database connector.</param> /// <param name="from">From.</param> /// <param name="to">To.</param> /// <param name="user">The user.</param> public YearExecuter(DataBaseConnector db, int from, int to, User user) { this.conn = db; this.user = user; this.fromYear = from; this.toYear = to; queriesList = HeuristicsBank.GetYearHeuristics(this.conn); }
/// <summary> /// Initializes a new instance of the <see cref="NumberExecuter"/> class. /// </summary> /// <param name="user">The user.</param> /// <param name="connector">The connector.</param> public NumberExecuter(User user, DataBaseConnector connector) { this.user = user; this.conn = connector; this.queriesList = HeuristicsBank.GetNumberHeuristics(this.conn); }