Class GetMetros
java.lang.Object
io.github.dsheirer.rrapi.request.RequestBody
io.github.dsheirer.rrapi.request.GetMetros
Get metro(s)
-
Constructor Summary
ConstructorsConstructorDescriptionGetMetros(AuthorizationInformation authorizationInformation) Constructs a get ALL modes requestGetMetros(AuthorizationInformation authorizationInformation, int metroId) Constructs the get mode request -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestEnvelopecreate(AuthorizationInformation authorizationInformation) Creates a get ALL metros requeststatic RequestEnvelopecreate(AuthorizationInformation authorizationInformation, int modeId) Creates a get specific metro requestMetro idvoidsetMetroId(int metroId) Sets the metro id to queryMethods inherited from class RequestBody
create, getAuthorizationInformation, setAuthorizationInformation
-
Constructor Details
-
GetMetros
Constructs the get mode request- Parameters:
authorizationInformation- for the usermetroId- to request
-
GetMetros
Constructs a get ALL modes request- Parameters:
authorizationInformation- credentials
-
-
Method Details
-
getMetroId
-
setMetroId
public void setMetroId(int metroId) Sets the metro id to query- Parameters:
metroId- to query
-
create
Creates a get specific metro request- Parameters:
authorizationInformation- credentialsmodeId- to query- Returns:
- request
-
create
Creates a get ALL metros request- Parameters:
authorizationInformation- credentials- Returns:
- request
-