XweatherAuthenticator

XweatherAuthenticator

Based on the IOS version Need to complete code for fetchAccessToken() using code from TokenRequestTask.kt

Author

Jason Suto 01/18/24

Constructors

Link copied to clipboard
constructor(account: XweatherAccount, server: URL)

Properties

Link copied to clipboard
Link copied to clipboard
open override val eventDispatcher: EventDispatcher
Link copied to clipboard
open override val headers: Map<String, String>
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun authenticate(): Map<String, String>
Link copied to clipboard
inline fun <EventType : Event> EventSource.publisher(eventType: Class<EventType>): Flow<EventType>
Link copied to clipboard
inline suspend fun <EventType : Event> EventSource.subscribe(eventType: Class<EventType>, crossinline handler: (EventType) -> Unit)
Link copied to clipboard