Rename all OPDS-prefixed models to generic names (Server, Feed, Entry, Link, StreamLink), expand the ServerSoftware interface to cover all server interactions, and implement a full Kavita REST API client that replaces the OPDS delegation. - Rename OPDS* models to generic names across ~60 files - Add database migrations 13 (opds_id → entry_id) and 14 (unify credentials) - Create OPDSServerSoftware wrapping existing OPDS services - Create KavitaApiClient for direct Kavita REST API calls - Create KavitaFeedMapper to convert Kavita JSON to Feed/Entry models - Rewrite KavitaServerSoftware to use native API (no OPDS delegation) - Unify server credentials (remove softwareUsername/softwarePassword) - Simplify add/edit server UI to single auth section - Add test connection button to server add/edit screens - Add progress indicator to PublicationCard using local and server data - Eliminate softwareType branching in reader screens - Add EntryProgress and fetchEntryProgress to ServerSoftware interface - Fix Entry.acquisitionLink crash on empty links - Add 59 new tests covering models, services, and providers
27 lines
968 B
Dart
27 lines
968 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'stream_link.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$StreamLinkImpl _$$StreamLinkImplFromJson(Map<String, dynamic> json) =>
|
|
_$StreamLinkImpl(
|
|
href: json['href'] as String,
|
|
type: json['type'] as String,
|
|
pageCount: (json['pageCount'] as num).toInt(),
|
|
lastRead: (json['lastRead'] as num?)?.toInt(),
|
|
lastReadDate: json['lastReadDate'] == null
|
|
? null
|
|
: DateTime.parse(json['lastReadDate'] as String),
|
|
);
|
|
|
|
Map<String, dynamic> _$$StreamLinkImplToJson(_$StreamLinkImpl instance) =>
|
|
<String, dynamic>{
|
|
'href': instance.href,
|
|
'type': instance.type,
|
|
'pageCount': instance.pageCount,
|
|
'lastRead': instance.lastRead,
|
|
'lastReadDate': instance.lastReadDate?.toIso8601String(),
|
|
};
|