Converted frequency to long primitive type (from integer) in anticipation of HackRF support which requires frequencies greater than 2.147 GHz, which is the max hertz value that can be represented by an integer primitive.

This commit is contained in:
dennis.sheirer
2014-07-08 14:40:11 +00:00
parent cdf8c730bc
commit 35a2cebe03
51 changed files with 240 additions and 419 deletions

View File

@@ -25,14 +25,14 @@ import decode.DecoderType;
public class PassportCallEvent extends CallEvent
{
private int mChannel;
private int mFrequency;
private long mFrequency;
public PassportCallEvent( CallEventType callEventType,
AliasList aliasList,
String fromID,
String toID,
int channel,
int frequency,
long frequency,
String details )
{
super( DecoderType.PASSPORT, callEventType,
@@ -81,7 +81,7 @@ public class PassportCallEvent extends CallEvent
}
@Override
public int getFrequency()
public long getFrequency()
{
return mFrequency;
}
@@ -97,7 +97,7 @@ public class PassportCallEvent extends CallEvent
private String mToID;
private String mDetails;
private int mChannel;
private int mFrequency;
private long mFrequency;
public Builder( CallEventType callEventType )
{
@@ -128,7 +128,7 @@ public class PassportCallEvent extends CallEvent
return this;
}
public Builder frequency( int frequency )
public Builder frequency( long frequency )
{
mFrequency = frequency;
return this;