java.lang.Object
io.github.webbasedwodt.common.model.User

public class User extends Object
This model class demonstrates how to use a custom serialization (in this case JSON-Serialization with Jackson) for Messages.
  • Field Details

    • USER_CUSTOM_CONTENT_TYPE

      public static final String USER_CUSTOM_CONTENT_TYPE
      The content type of the serialization output.
      See Also:
  • Constructor Details

    • User

      public User()
      Empty constructor.
    • User

      public User(String userName, String email)
      Default constructor
      Parameters:
      userName - the username of the user
      email - the email of the user
  • Method Details

    • getUserName

      public String getUserName()
      Get the username of the user.
      Returns:
      the username of the user
    • setUserName

      public void setUserName(String userName)
      Set the username of the user.
      Parameters:
      userName - the new username to set
    • getEmail

      public String getEmail()
      Get the email of the user.
      Returns:
      the email of the user
    • setEmail

      public void setEmail(String email)
      Set a new email for the user.
      Parameters:
      email - the new email to set
    • toString

      public String toString()
      Overrides:
      toString in class Object