Class SessionEvent
- java.lang.Object
-
- com.trx.neon.api.neon.model.events.SessionEvent
-
- All Implemented Interfaces:
android.os.Parcelable
,INeonEvent
public class SessionEvent extends java.lang.Object implements android.os.Parcelable, INeonEvent
Uniquely identifies a tracking session, can be stored in HashMaps.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SessionEvent.DeviceType
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<SessionEvent>
CREATOR
Used for sending data across bindersjava.lang.String
deviceType
int
serialNumber
int
session
-
Constructor Summary
Constructors Constructor Description SessionEvent(int id, int session, SessionEvent.DeviceType deviceType)
ID Constructor, takes a unique identifier as input
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
boolean
equals(java.lang.Object o)
SessionEvent.DeviceType
getDeviceType()
Retrieve the device type connected to NEONNeonEventType
getEventType()
java.lang.String
getKey()
int
hashCode()
Gets a hashcode for this instancejava.lang.String
toString()
void
writeToParcel(android.os.Parcel out, int flags)
-
-
-
Field Detail
-
serialNumber
public final int serialNumber
-
session
public final int session
-
deviceType
public final java.lang.String deviceType
-
CREATOR
public static final android.os.Parcelable.Creator<SessionEvent> CREATOR
Used for sending data across binders
-
-
Constructor Detail
-
SessionEvent
public SessionEvent(int id, int session, SessionEvent.DeviceType deviceType)
ID Constructor, takes a unique identifier as input
-
-
Method Detail
-
getDeviceType
public SessionEvent.DeviceType getDeviceType()
Retrieve the device type connected to NEON
-
getKey
public java.lang.String getKey()
- Specified by:
getKey
in interfaceINeonEvent
-
getEventType
public NeonEventType getEventType()
- Specified by:
getEventType
in interfaceINeonEvent
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
- See Also:
Parcelable.describeContents()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Gets a hashcode for this instance- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
writeToParcel
public void writeToParcel(android.os.Parcel out, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
- See Also:
Parcelable.writeToParcel(android.os.Parcel, int)
-
-