Skip to content

Runnetera Status

Antoine CLOP edited this page Jan 23, 2021 · 2 revisions

LoR Service Status

Service status list all incidents and updates concerning all Legends of Runnetera services.

Methods

Status

Parameters

  • 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.

Usage example

league.lorAPI.getStatus(on: .SouthEastAsia) { (status, errorMsg) in
    if let status = status {
        print("Success!")
    }
    else {
        print("Request failed cause: \(errorMsg ?? "No error description")")
    }
}
Clone this wiki locally