You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
589 B
32 lines
589 B
4 years ago
|
package com.community.pocket.ui.login;
|
||
|
|
||
|
import androidx.annotation.Nullable;
|
||
|
|
||
|
/**
|
||
|
* Authentication result : success (user details) or error message.
|
||
|
*/
|
||
|
class LoginResult {
|
||
|
@Nullable
|
||
|
private LoggedInUserView success;
|
||
|
@Nullable
|
||
|
private Integer error;
|
||
|
|
||
|
LoginResult(@Nullable Integer error) {
|
||
|
this.error = error;
|
||
|
}
|
||
|
|
||
|
LoginResult(@Nullable LoggedInUserView success) {
|
||
|
this.success = success;
|
||
|
}
|
||
|
|
||
|
@Nullable
|
||
|
LoggedInUserView getSuccess() {
|
||
|
return success;
|
||
|
}
|
||
|
|
||
|
@Nullable
|
||
|
Integer getError() {
|
||
|
return error;
|
||
|
}
|
||
|
}
|