Class User

    • Constructor Summary

      Constructors 
      Constructor Description
      User()  
      User​(@NotNull User user)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void acceptUnknownProperties​(@NotNull java.util.Map<java.lang.String,​java.lang.Object> unknown)
      User's unknown fields, only internal usage
      @Nullable java.lang.String getEmail()
      Gets the e-mail address of the user.
      @Nullable java.lang.String getId()
      Gets the id of the user.
      @Nullable java.lang.String getIpAddress()
      Gets the IP address of the user.
      @Nullable java.util.Map<java.lang.String,​@NotNull java.lang.String> getOthers()
      Gets other user related data.
      @Nullable java.lang.String getUsername()
      Gets the username of the user.
      void setEmail​(@Nullable java.lang.String email)
      Gets the e-mail address of the user.
      void setId​(@Nullable java.lang.String id)
      Sets the id of the user.
      void setIpAddress​(@Nullable java.lang.String ipAddress)
      Sets the IP address of the user.
      void setOthers​(@Nullable java.util.Map<java.lang.String,​@NotNull java.lang.String> other)
      Sets other user related data.
      void setUsername​(@Nullable java.lang.String username)
      Sets the username of the user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • User

        public User()
      • User

        public User​(@NotNull
                    @NotNull User user)
    • Method Detail

      • getEmail

        @Nullable
        public @Nullable java.lang.String getEmail()
        Gets the e-mail address of the user.
        Returns:
        the e-mail.
      • setEmail

        public void setEmail​(@Nullable
                             @Nullable java.lang.String email)
        Gets the e-mail address of the user.
        Parameters:
        email - the e-mail.
      • getId

        @Nullable
        public @Nullable java.lang.String getId()
        Gets the id of the user.
        Returns:
        the id.
      • setId

        public void setId​(@Nullable
                          @Nullable java.lang.String id)
        Sets the id of the user.
        Parameters:
        id - the user id.
      • getUsername

        @Nullable
        public @Nullable java.lang.String getUsername()
        Gets the username of the user.
        Returns:
        the username.
      • setUsername

        public void setUsername​(@Nullable
                                @Nullable java.lang.String username)
        Sets the username of the user.
        Parameters:
        username - the username.
      • getIpAddress

        @Nullable
        public @Nullable java.lang.String getIpAddress()
        Gets the IP address of the user.
        Returns:
        the IP address of the user.
      • setIpAddress

        public void setIpAddress​(@Nullable
                                 @Nullable java.lang.String ipAddress)
        Sets the IP address of the user.
        Parameters:
        ipAddress - the IP address of the user.
      • getOthers

        @Nullable
        public @Nullable java.util.Map<java.lang.String,​@NotNull java.lang.String> getOthers()
        Gets other user related data.
        Returns:
        the other user data.
      • setOthers

        public void setOthers​(@Nullable
                              @Nullable java.util.Map<java.lang.String,​@NotNull java.lang.String> other)
        Sets other user related data.
        Parameters:
        other - the other user related data..
      • acceptUnknownProperties

        @Internal
        public void acceptUnknownProperties​(@NotNull
                                            @NotNull java.util.Map<java.lang.String,​java.lang.Object> unknown)
        User's unknown fields, only internal usage
        Specified by:
        acceptUnknownProperties in interface IUnknownPropertiesConsumer
        Parameters:
        unknown - the unknown fields