Cloudstream
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Cloudstream
App
/
com.lagradost.cloudstream3.syncproviders
/
SyncRepo
Sync
Repo
class
SyncRepo
(
val
api
:
SyncAPI
)
:
AuthRepo
(
source
)
Stateless safe abstraction of SyncAPI
Members
Constructors
Sync
Repo
Link copied to clipboard
constructor
(
api
:
SyncAPI
)
Properties
account
Id
Link copied to clipboard
var
accountId
:
Int
accounts
Link copied to clipboard
val
accounts
:
Array
<
AuthData
>
api
Link copied to clipboard
open
override
val
api
:
SyncAPI
create
Account
Url
Link copied to clipboard
val
createAccountUrl
:
String
?
has
In
App
Link copied to clipboard
val
hasInApp
:
Boolean
has
OAuth2
Link copied to clipboard
val
hasOAuth2
:
Boolean
has
Pin
Link copied to clipboard
val
hasPin
:
Boolean
icon
Link copied to clipboard
val
icon
:
Int
?
id
Prefix
Link copied to clipboard
val
idPrefix
:
String
in
App
Login
Requirement
Link copied to clipboard
val
inAppLoginRequirement
:
AuthLoginRequirement
?
is
Available
Link copied to clipboard
val
isAvailable
:
Boolean
name
Link copied to clipboard
val
name
:
String
require
Library
Refresh
Link copied to clipboard
var
requireLibraryRefresh
:
Boolean
requires
Login
Link copied to clipboard
val
requiresLogin
:
Boolean
sync
Id
Name
Link copied to clipboard
val
syncIdName
:
SyncIdName
?
Functions
auth
Data
Link copied to clipboard
fun
authData
(
)
:
AuthData
?
auth
Token
Link copied to clipboard
fun
authToken
(
)
:
AuthToken
?
auth
User
Link copied to clipboard
fun
authUser
(
)
:
AuthUser
?
fresh
Auth
Link copied to clipboard
protected
suspend
fun
freshAuth
(
)
:
AuthData
?
is
Valid
Redirect
Url
Link copied to clipboard
fun
isValidRedirectUrl
(
url
:
String
)
:
Boolean
library
Link copied to clipboard
suspend
fun
library
(
)
:
Result
<
SyncAPI.LibraryMetadata
?
>
load
Link copied to clipboard
suspend
fun
load
(
id
:
String
)
:
Result
<
SyncAPI.SyncResult
?
>
login
Link copied to clipboard
suspend
fun
login
(
form
:
AuthLoginResponse
)
:
Boolean
suspend
fun
login
(
payload
:
AuthPinData
)
:
Boolean
suspend
fun
login
(
redirectUrl
:
String
)
:
Boolean
logout
Link copied to clipboard
suspend
fun
logout
(
from
:
AuthUser
)
open
OAuth2Page
Link copied to clipboard
fun
openOAuth2Page
(
)
:
Boolean
open
OAuth2Page
With
Toast
Link copied to clipboard
fun
openOAuth2PageWithToast
(
)
pin
Request
Link copied to clipboard
suspend
fun
pinRequest
(
)
:
AuthPinData
?
refresh
User
Link copied to clipboard
fun
refreshUser
(
newAuth
:
AuthData
)
status
Link copied to clipboard
suspend
fun
status
(
id
:
String
)
:
Result
<
SyncAPI.AbstractSyncStatus
?
>
update
Status
Link copied to clipboard
suspend
fun
updateStatus
(
id
:
String
,
newStatus
:
SyncAPI.AbstractSyncStatus
)
:
Result
<
Boolean
>