using API.DTOs.Progress; namespace API.DTOs.Koreader; /// /// This is the interface for receiving and sending updates to Koreader. The only fields /// that are actually used are the Document and Progress fields. /// public class KoreaderBookDto { /// /// This is the Koreader hash of the book. It is used to identify the book. /// public string document { get; set; } /// /// A randomly generated id from the koreader device. Only used to maintain the Koreader interface. /// public string device_id { get; set; } /// /// The Koreader device name. Only used to maintain the Koreader interface. /// public string device { get; set; } /// /// Percent progress of the book. Only used to maintain the Koreader interface. /// public float percentage { get; set; } /// /// An XPath string read by Koreader to determine the location within the epub. /// Essentially, it is Koreader's equivalent to ProgressDto.BookScrollId. /// /// public string progress { get; set; } /// /// Last Progress in Unix seconds since epoch /// public long timestamp { get; set; } }