using System; namespace RuriLib.Models { /// /// A record that, given a Config's name and a Wordlist's location, returns how many data lines have already been checked. /// public class Record { /// Needed for NoSQL storage. public Guid Id { get; set; } /// The name of the Config. public string ConfigName { get; set; } /// The location on disk of the Wordlist. public string WordlistLocation { get; set; } /// How many data lines were already checked. public int Checkpoint { get; set; } /// Needed for NoSQL deserialization. public Record() { } /// /// Creates a Record to be stored in the Database. /// /// The name of the Config used in the check /// The location on disk of the Wordlist used in the check /// The amount of data lines checked when creating the record public Record(string configName, string wordlistLocation, int checkpoint) { ConfigName = configName; WordlistLocation = wordlistLocation; Checkpoint = checkpoint; } } }