mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
feat: Android TV support (#503)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
7ab8c015b9
commit
c299492d6d
168 changed files with 12019 additions and 3073 deletions
|
|
@ -77,7 +77,7 @@ class JellyService {
|
|||
final JellyfinOpenApi _api;
|
||||
|
||||
JellyfinOpenApi get api {
|
||||
var authServer = ref.read(authProvider).tempCredentials.server;
|
||||
var authServer = ref.read(authProvider).serverLoginModel?.tempCredentials.server ?? "";
|
||||
var currentServer = ref.read(userProvider)?.credentials.server;
|
||||
if ((authServer.isNotEmpty ? authServer : currentServer) == FakeHelper.fakeTestServerUrl) {
|
||||
return FakeJellyfinOpenApi();
|
||||
|
|
@ -1126,6 +1126,8 @@ class JellyService {
|
|||
|
||||
Future<Response<bool>> quickConnectEnabled() async => api.quickConnectEnabledGet();
|
||||
|
||||
Future<Response<BrandingOptions>> getBranding() async => api.brandingConfigurationGet();
|
||||
|
||||
Future<Response<dynamic>> deleteItem(String itemId) => api.itemsItemIdDelete(itemId: itemId);
|
||||
|
||||
Future<UserConfiguration?> _updateUserConfiguration(UserConfiguration newUserConfiguration) async {
|
||||
|
|
@ -1161,6 +1163,22 @@ class JellyService {
|
|||
);
|
||||
return _updateUserConfiguration(updated);
|
||||
}
|
||||
|
||||
Future<Response<QuickConnectResult>> quickConnectInitiate() async {
|
||||
return api.quickConnectInitiatePost();
|
||||
}
|
||||
|
||||
Future<Response<QuickConnectResult>> quickConnectConnectGet({
|
||||
String? secret,
|
||||
}) async {
|
||||
return api.quickConnectConnectGet(secret: secret);
|
||||
}
|
||||
|
||||
Future<Response<AuthenticationResult>> quickConnectAuthenticate(String secret) async {
|
||||
return api.usersAuthenticateWithQuickConnectPost(
|
||||
body: QuickConnectDto(secret: secret),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
extension ParsedMap on Map<String, dynamic> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue