Class TelematicsUserDetails

java.lang.Object
com.sentilant.telematicssdk.TelematicsUserDetails
All Implemented Interfaces:
Serializable

public class TelematicsUserDetails extends Object implements 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 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

      public String getName()
      Gets the full name of the user.
      Returns:
      the user's name
    • getGroup

      public String getGroup()
      Gets the group or organizational unit of the user.
      Returns:
      the user's group
    • getNickname

      public String 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

      public void setName(String name)
      Sets the full name of the user.
      Parameters:
      name - the user's name to set
    • setGroup

      public void setGroup(String group)
      Sets the group or organizational unit of the user.
      Parameters:
      group - the user's group to set
    • setNickname

      public void setNickname(String nickname)
      Sets the nickname of the user.
      Parameters:
      nickname - the user's nickname to set
    • toString

      @NonNull public String toString()
      Returns a string representation of the telematics user details.
      Overrides:
      toString in class Object
      Returns:
      a formatted string with user information