bahn_ex v1.0.0 BahnEx.ResponseHandler View Source

Handles the responses of the DB Fahrplan API and tries to convert the json body in appropiate structs

Link to this section Summary

Link to this section Functions

Link to this function handle_arrival_board_response(response) View Source
handle_arrival_board_response({:ok, HTTPoison.Response.t | HTTPoison.AsyncResponse.t} | {:error, HTTPoison.Error.t}) :: [BahnEx.Train.t]
Link to this function handle_departure_board_response(response) View Source
handle_departure_board_response({:ok, HTTPoison.Response.t | HTTPoison.AsyncResponse.t} | {:error, HTTPoison.Error.t}) :: [BahnEx.Train.t]
Link to this function handle_journey_details_response(response) View Source
Link to this function handle_location_response(response) View Source
handle_location_response({:ok, HTTPoison.Response.t | HTTPoison.AsyncResponse.t} | {:error, HTTPoison.Error.t}) :: [BahnEx.Location.t | nil]