Class GetStatesByList
java.lang.Object
io.github.dsheirer.rrapi.request.RequestBody
io.github.dsheirer.rrapi.request.GetStatesByList
List of states supported by the service
-
Constructor Summary
ConstructorsConstructorDescriptionGetStatesByList(AuthorizationInformation authorizationInformation) Constructs the request -
Method Summary
Modifier and TypeMethodDescriptionvoidaddState(int stateId) Adds a state IDstatic RequestEnvelopecreate(AuthorizationInformation authorizationInformation, int... stateIds) Creates the request envelopestatic RequestEnvelopecreate(AuthorizationInformation authorizationInformation, List<Integer> stateIds) Creates the request envelopeRequest parameter, sent as a SOAP encoded array of stid itemsState request item listvoidsetStateIdItems(List<StateRequestItem> stateIdItems) Sets the state id itemsMethods inherited from class RequestBody
create, getAuthorizationInformation, setAuthorizationInformation
-
Constructor Details
-
GetStatesByList
Constructs the request- Parameters:
authorizationInformation- for the user
-
-
Method Details
-
getRequest
Request parameter, sent as a SOAP encoded array of stid items -
getStateIdItems
-
setStateIdItems
Sets the state id items- Parameters:
stateIdItems- to set
-
addState
public void addState(int stateId) Adds a state ID- Parameters:
stateId- to add
-
create
public static RequestEnvelope create(AuthorizationInformation authorizationInformation, int... stateIds) Creates the request envelope- Parameters:
authorizationInformation- for the requesterstateIds- to request- Returns:
- envelope
-
create
public static RequestEnvelope create(AuthorizationInformation authorizationInformation, List<Integer> stateIds) Creates the request envelope- Parameters:
authorizationInformation- for the requesterstateIds- to request- Returns:
- envelope
-