PredixSyncServerInformationFetcher
public class PredixSyncServerInformationFetcher
Retrieves PredixSyncServerInformation from a given Predix Sync server endpoint
-
Fetched
PredixSyncServerInformationDeclaration
Swift
public var fetchedServerInformation: PredixSyncServerInformation? -
Returns a PredixSyncServerInformationFetcher for the given endpoint. Fetchers and their retrieved
PredixSyncServerInformationdata are cached until cleared.Declaration
Swift
static public func fetcher(forEndpoint serverEndpointURL: URL) -> PredixSyncServerInformationFetcher -
Fetches the
PredixSyncServerInformationfrom the given endpoint URL, or returns previously cached information.Since
PredixSyncServerInformationdoes not usually change, this class will cache this information until the cache is cleared.Declaration
Swift
public func fetchServerInformation(completionHandler: ((PredixSyncServerInformation?) -> Void)?)Parameters
completionHandlerCompletion handler called when the
PredixSyncServerInformationhas been retreived -
Clears the cached
PredixSyncServerInformationfor this instanceDeclaration
Swift
public func clearCache()
View on GitHub
PredixSyncServerInformationFetcher Class Reference