setProgress method

Future<void> setProgress(
  1. Progress progress
)

Implementation

Future<void> setProgress(Progress progress) async {
  Uri uri = this._httpClient.config.generateApiUri(
      '/v1/' + _library.id.toString() + '/' + this.id.toString() + '/progress',
    queryParameters: {
        'reading_page': progress.currentPage.toString()
    }
  );
  await _httpClient.put(uri);
}