Class SearchCountyFrequency
java.lang.Object
io.github.dsheirer.rrapi.request.RequestBody
io.github.dsheirer.rrapi.request.SearchCountyFrequency
Search county frequency
-
Constructor Summary
ConstructorsConstructorDescriptionSearchCountyFrequency(AuthorizationInformation authorizationInformation, int countyId, double frequency) Constructs a requestSearchCountyFrequency(AuthorizationInformation authorizationInformation, int countyId, double frequency, String tone) Constructs the request -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestEnvelopecreate(AuthorizationInformation authorizationInformation, int countyId, double frequency) Creates the request envelopestatic RequestEnvelopecreate(AuthorizationInformation authorizationInformation, int countyId, double frequency, String tone) Creates the request envelopeintCounty iddoubleFrequency 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.getTone()Tone (PL) on the channelvoidsetCountyId(int countyId) Sets the county idvoidsetFrequency(double frequency) Search frequencyvoidSpecifies a tone to search forMethods inherited from class RequestBody
create, getAuthorizationInformation, setAuthorizationInformation
-
Constructor Details
-
SearchCountyFrequency
public SearchCountyFrequency(AuthorizationInformation authorizationInformation, int countyId, double frequency, String tone) Constructs the request- Parameters:
authorizationInformation- for the requestcountyId- to search forfrequency- to search for in MHztone- PL tone to search for
-
SearchCountyFrequency
public SearchCountyFrequency(AuthorizationInformation authorizationInformation, int countyId, double frequency) Constructs a request- Parameters:
authorizationInformation- for the requestcountyId- to search forfrequency- to search for in MHz
-
-
Method Details
-
getCountyId
public int getCountyId()County id- Returns:
- id
-
setCountyId
public void setCountyId(int countyId) Sets the county id- Parameters:
countyId- 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 countyId, double frequency) Creates the request envelope- Parameters:
authorizationInformation- credentialscountyId- to queryfrequency- in MHz- Returns:
- request
-
create
public static RequestEnvelope create(AuthorizationInformation authorizationInformation, int countyId, double frequency, String tone) Creates the request envelope- Parameters:
authorizationInformation- credentialscountyId- to queryfrequency- in MHztone- PL- Returns:
- request
-