Skip to content

Commit

Permalink
added "real" account types
Browse files Browse the repository at this point in the history
  • Loading branch information
Josakko committed Apr 15, 2024
1 parent 16f20aa commit ba91b42
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/atlauncher/data/AbstractAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public abstract class AbstractAccount implements Serializable {

public abstract String getUserType();

public abstract String getRealUserType();

public abstract String getCurrentUsername();

public abstract void updateSkinPreCheck();
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/atlauncher/data/MicrosoftAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,4 +323,9 @@ public boolean ensureAccessTokenValid() {

return false;
}

@Override
public String getRealUserType() {
return "msa";
}
}
5 changes: 5 additions & 0 deletions src/main/java/com/atlauncher/data/MojangAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,9 @@ public LoginResponse login() {

return response;
}

@Override
public String getRealUserType() {
return "mojang";
}
}

0 comments on commit ba91b42

Please sign in to comment.