Package edu.wisc.game.rest

## Class UserResponse

- java.lang.Object
- - edu.wisc.game.rest.ResponseBase
  - - edu.wisc.game.rest.UserResponse

-     public class UserResponse
      extends ResponseBase

  Used by LoginServlet and the Android app for registering new users and logging in

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `UserResponse​(String email, String nickname, String password, boolean anon)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `getNewlyRegistered()` |
    `boolean` | `getPasswordMatched()` |
    `User` | `getUser()` |

    - ### Methods inherited from class edu.wisc.game.rest.ResponseBase

      `getErrmsg, getError, hasError, setErrmsg, setError`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### UserResponse

          public UserResponse​(String email,
                              String nickname,
                              String password,
                              boolean anon)

      Parameters:
        `password` - If null, ignored; otherwise, password match is required

  - ### Method Detail

    - #### getUser

          public User getUser()

    - #### getNewlyRegistered

          public boolean getNewlyRegistered()

    - #### getPasswordMatched

          public boolean getPasswordMatched()