public void valuesInit(LibrelioUrl url) { relativePath = url.RelativeUrl; isPaid = fileName.Contains("_."); pdfUrl = url.AbsoluteUrl; if (isPaid) { pngUrl = pdfUrl.Replace("_.pdf", ".png"); //samplePath = pdfPath.Replace("_.", "."); isSampleDowloaded = false; } else { pngUrl = pdfUrl.Replace(".pdf", ".png"); } isDowloaded = false; }
public MagazineModel(LibrelioUrl url) { this.fileName = url.FullName; this.Title = url.Title; this.Subtitle = url.Subtitle; this.Index = url.Index; valuesInit(url); }