Class User

All Implemented Interfaces:
Jsonable

public class User extends BaseUser
Represents a Vonage User (both request and response).
  • Constructor Details

  • Method Details

    • getDisplayName

      A string to be displayed as username. It does not need to be unique.
      Returns:
      The user's friendly name.
    • getImageUrl

      public URI getImageUrl()
      An image URL to associate with the user.
      Returns:
      The image URL, or null if not specified.
    • getCustomData

      public Map<String,?> getCustomData()
      Custom key/value pairs to associate with the user.
      Returns:
      The custom data as a Map, or null if not specified.
    • getChannels

      The communication channels available to the user.
      Returns:
      The channels object, or null if unknown.
    • fromJson

      public static User fromJson(String json)
      Constructs a user from the JSON payload.
      Parameters:
      json - The JSON structure containing the fields of this class.
      Returns:
      A new User instance.
    • builder

      public static User.Builder builder()
      Entry point for creating an instance of this class.
      Returns:
      A new Builder.