-
Notifications
You must be signed in to change notification settings - Fork 13
Runnetera Status
Antoine CLOP edited this page Jan 23, 2021
·
2 revisions
Service status list all incidents and updates concerning all Legends of Runnetera services.
- Status(on: WorldRegion)
- WorldRegion: A world region to get status.
Since this method is asynchrone, there is not return value. Response will be provided with a handler closure with parameters: (ServiceStatus?, String?)
. ServiceStatus contains all status information and will be nil only if an error occurred. The String parameter contains the first error description encountered if existing.
league.lorAPI.getStatus(on: .SouthEastAsia) { (status, errorMsg) in
if let status = status {
print("Success!")
}
else {
print("Request failed cause: \(errorMsg ?? "No error description")")
}
}