Class SearchMetroFrequency
java.lang.Object
io.github.dsheirer.rrapi.request.RequestBody
io.github.dsheirer.rrapi.request.SearchMetroFrequency
Search metro frequency
-
Constructor Summary
ConstructorsConstructorDescriptionSearchMetroFrequency(AuthorizationInformation authorizationInformation, int metroId, double frequency) Constructs a requestSearchMetroFrequency(AuthorizationInformation authorizationInformation, int metroId, double frequency, String tone) Constructs the request -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestEnvelopecreate(AuthorizationInformation authorizationInformation, int metroId, double frequency) Creates the request envelopestatic RequestEnvelopecreate(AuthorizationInformation authorizationInformation, int metroId, double frequency, String tone) Creates the request envelopedoubleFrequency to search forFrequency parameter as sent to the service: MHz rounded to the nearest Hz, without floating point artifacts, so a frequency computed from Hz, e.g.intMetro idgetTone()Tone (PL) on the channelvoidsetFrequency(double frequency) Search frequencyvoidsetMetroId(int metroId) Sets the metro idvoidSpecifies a tone to search forMethods inherited from class RequestBody
create, getAuthorizationInformation, setAuthorizationInformation
-
Constructor Details
-
SearchMetroFrequency
public SearchMetroFrequency(AuthorizationInformation authorizationInformation, int metroId, double frequency, String tone) Constructs the request- Parameters:
authorizationInformation- for the requestmetroId- to search forfrequency- to search for in MHztone- PL tone to search for
-
SearchMetroFrequency
public SearchMetroFrequency(AuthorizationInformation authorizationInformation, int metroId, double frequency) Constructs a request- Parameters:
authorizationInformation- for the requestmetroId- to search forfrequency- to search for in MHz
-
-
Method Details
-
getMetroId
public int getMetroId()Metro id- Returns:
- id
-
setMetroId
public void setMetroId(int metroId) Sets the metro id- Parameters:
metroId- to query
-
getFrequency
public double getFrequency()Frequency to search for- Returns:
- frequency in MHz
-
getFrequencyText
Frequency parameter as sent to the service: MHz rounded to the nearest Hz, without floating point artifacts, so a frequency computed from Hz, e.g. hz / 1E6, matches the database value.- Returns:
- frequency text in MHz
-
setFrequency
public void setFrequency(double frequency) Search frequency- Parameters:
frequency- in MHz
-
getTone
-
setTone
-
create
public static RequestEnvelope create(AuthorizationInformation authorizationInformation, int metroId, double frequency) Creates the request envelope- Parameters:
authorizationInformation- credentialsmetroId- to queryfrequency- in MHz- Returns:
- request
-
create
public static RequestEnvelope create(AuthorizationInformation authorizationInformation, int metroId, double frequency, String tone) Creates the request envelope- Parameters:
authorizationInformation- credentialsmetroId- to queryfrequency- in MHztone- PL- Returns:
- request
-