Tap to Paginate User Pref (#197)

* Fixed In Progress and removed comments

* Tap to Paginate user setting is implemented. Fixes #193
This commit is contained in:
Joseph Milazzo 2021-05-04 17:01:27 -05:00 committed by GitHub
parent 9c43833989
commit 2be1630af3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 803 additions and 3 deletions

View file

@ -88,6 +88,19 @@ namespace API.Controllers
{
return Ok(await _unitOfWork.VolumeRepository.GetChapterDtoAsync(chapterId));
}
/// <summary>
/// Returns the next logical volume from the series.
/// </summary>
/// <param name="seriesId"></param>
/// <param name="volumeId"></param>
/// <returns>chapter id for next manga</returns>
[HttpGet("next-volume")]
public async Task<ActionResult<int>> GetNextChapter(int seriesId, int volumeId)
{
return Ok();
}
[HttpPost("update-rating")]

View file

@ -66,6 +66,7 @@ namespace API.Controllers
existingPreferences.BookReaderFontFamily = preferencesDto.BookReaderFontFamily;
existingPreferences.BookReaderDarkMode = preferencesDto.BookReaderDarkMode;
existingPreferences.BookReaderFontSize = preferencesDto.BookReaderFontSize;
existingPreferences.BookReaderTapToPaginate = preferencesDto.BookReaderTapToPaginate;
_unitOfWork.UserRepository.Update(existingPreferences);