Class GetMetros

java.lang.Object
io.github.dsheirer.rrapi.request.RequestBody
io.github.dsheirer.rrapi.request.GetMetros

public class GetMetros extends RequestBody
Get metro(s)
  • Constructor Details

    • GetMetros

      public GetMetros(AuthorizationInformation authorizationInformation, int metroId)
      Constructs the get mode request
      Parameters:
      authorizationInformation - for the user
      metroId - to request
    • GetMetros

      public GetMetros(AuthorizationInformation authorizationInformation)
      Constructs a get ALL modes request
      Parameters:
      authorizationInformation - credentials
  • Method Details

    • getMetroId

      public Integer getMetroId()
      Metro id
      Returns:
      id
    • setMetroId

      public void setMetroId(int metroId)
      Sets the metro id to query
      Parameters:
      metroId - to query
    • create

      public static RequestEnvelope create(AuthorizationInformation authorizationInformation, int modeId)
      Creates a get specific metro request
      Parameters:
      authorizationInformation - credentials
      modeId - to query
      Returns:
      request
    • create

      public static RequestEnvelope create(AuthorizationInformation authorizationInformation)
      Creates a get ALL metros request
      Parameters:
      authorizationInformation - credentials
      Returns:
      request