Пример #1
0
        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);
        }
Пример #2
0
 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;
 }
Пример #3
0
 private static bool IsInvalidChapter(JsonChapter jsonChapter)
 {
     return(!IsValidChapterName(jsonChapter.name));
 }
Пример #4
0
 private static bool IsInvalidChapter(JsonChapter jsonChapter)
 {
     return !IsValidChapterName(jsonChapter.name);
 }