private static Chapter Transform(JsonChapter jsonChapter, int i) { var title = (jsonChapter.name ?? "").Trim(); var isValidChapterName = IsValidChapterName(title); var chapter = new Chapter(i + 1, jsonChapter.time.TotalSeconds) { Title = title, Keep = isValidChapterName }; return(chapter); }
private static Chapter Transform(JsonChapter jsonChapter, int i) { var title = (jsonChapter.name ?? "").Trim(); var isValidChapterName = IsValidChapterName(title); var chapter = new Chapter(i + 1, jsonChapter.time.TotalSeconds) { Title = title, Keep = isValidChapterName }; return chapter; }
private static bool IsInvalidChapter(JsonChapter jsonChapter) { return(!IsValidChapterName(jsonChapter.name)); }
private static bool IsInvalidChapter(JsonChapter jsonChapter) { return !IsValidChapterName(jsonChapter.name); }