Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create LoginData model to replace List<Pair>
- Loading branch information
1 parent
9322dc4
commit 7acc0c0
Showing
3 changed files
with
90 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,43 @@ | |||
package me.corriekay.pokegoutil.DATA.models; | |||
|
|||
public class LoginData { | |||
|
|||
private String token; | |||
private String username; | |||
private String password; | |||
|
|||
public String getPassword() { | |||
return password; | |||
} | |||
|
|||
public String getToken() { | |||
return token; | |||
} | |||
|
|||
public String getUsername() { | |||
return username; | |||
} | |||
|
|||
public void setPassword(String password) { | |||
this.password = password; | |||
} | |||
|
|||
public void setToken(String token) { | |||
this.token = token; | |||
} | |||
|
|||
public void setUsername(String username) { | |||
this.username = username; | |||
} | |||
|
|||
public boolean hasUsername(){ | |||
return username != null; | |||
} | |||
|
|||
public boolean hasPassword(){ | |||
return password != null; | |||
} | |||
public boolean hasToken(){ | |||
return token != null; | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters