public class InProgressSmsSession extends Object
Modifier and Type | Field and Description |
---|---|
Deque<SmsSession.Event> |
events
SMS session events
|
int |
phoneId
Phone id
|
long |
startElapsedTimeMs
Sms session starting elapsed time in milliseconds
|
int |
startSystemTimeMin
Sms session starting system time in minute
|
Constructor and Description |
---|
InProgressSmsSession(int phoneId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addEvent(long timestamp,
SmsSessionEventBuilder builder)
Add event
|
void |
addEvent(SmsSessionEventBuilder builder)
Add event
|
void |
decreaseExpectedResponse()
Decrease the expected response #
|
int |
getNumExpectedResponses()
Get the expected response #
|
void |
increaseExpectedResponse()
Increase the expected response #
|
boolean |
isEventsDropped()
Check if events dropped
|
public final int phoneId
public final Deque<SmsSession.Event> events
public final int startSystemTimeMin
public final long startElapsedTimeMs
public InProgressSmsSession(int phoneId)
phoneId
- Phone idpublic void increaseExpectedResponse()
public void decreaseExpectedResponse()
public int getNumExpectedResponses()
public boolean isEventsDropped()
public void addEvent(SmsSessionEventBuilder builder)
builder
- Event builderpublic void addEvent(long timestamp, SmsSessionEventBuilder builder)
timestamp
- Timestamp to be recoded with the eventbuilder
- Event builder