Add doc string

This commit is contained in:
AntsyLich 2022-08-10 21:30:20 +06:00 committed by arkon
parent 657f1cf65f
commit f46f9ecec3

View File

@ -28,6 +28,14 @@ class SyncChaptersWithSource(
private val getChapterByMangaId: GetChapterByMangaId = Injekt.get(),
) {
/**
* Method to synchronize db chapters with source ones
*
* @param rawSourceChapters the chapters from the source.
* @param manga the manga the chapters belong to.
* @param source the source the manga belongs to.
* @return Newly added chapters
*/
suspend fun await(
rawSourceChapters: List<SChapter>,
manga: Manga,