Package com.sentilant.telematicssdk
Class TelematicsUserDetails
java.lang.Object
com.sentilant.telematicssdk.TelematicsUserDetails
- All Implemented Interfaces:
Serializable
Represents the details of a telematics user within the SDK.
This class is used to hold user-specific information such as the user's unique identifier, name, group, and nickname. It is serializable and can be easily passed between components or persisted if needed.
The fields are annotated with Expose for use with Gson serialization,
ensuring only the annotated fields are included during JSON conversion.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor required for serialization/deserialization. -
Method Summary
Modifier and TypeMethodDescriptiongetGroup()Gets the group or organizational unit of the user.intgetId()Gets the unique identifier of the user.getName()Gets the full name of the user.Gets the nickname of the user.voidSets the group or organizational unit of the user.voidsetId(int id) Sets the unique identifier of the user.voidSets the full name of the user.voidsetNickname(String nickname) Sets the nickname of the user.toString()Returns a string representation of the telematics user details.
-
Constructor Details
-
TelematicsUserDetails
public TelematicsUserDetails()Default constructor required for serialization/deserialization.
-
-
Method Details
-
getId
public int getId()Gets the unique identifier of the user.- Returns:
- the user ID
-
getName
Gets the full name of the user.- Returns:
- the user's name
-
getGroup
Gets the group or organizational unit of the user.- Returns:
- the user's group
-
getNickname
Gets the nickname of the user.- Returns:
- the user's nickname
-
setId
public void setId(int id) Sets the unique identifier of the user.- Parameters:
id- the user ID to set
-
setName
Sets the full name of the user.- Parameters:
name- the user's name to set
-
setGroup
Sets the group or organizational unit of the user.- Parameters:
group- the user's group to set
-
setNickname
Sets the nickname of the user.- Parameters:
nickname- the user's nickname to set
-
toString
Returns a string representation of the telematics user details.
-