Skip to content

Commit

Permalink
Minor backwards compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scaik committed Jul 20, 2024
1 parent 498387e commit 38194da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ public interface AccountFactory {
long DEFAULT_TELEGRAM_ID = -1;
int DEFAULT_VK_ID = -1;

/**
* @deprecated use {@link #createAccount(String, IdentifierType, UUID, String, CryptoProvider, String, String, boolean)} instead.
*/
@Deprecated
Account createAccount(String id, IdentifierType identifierType, UUID uuid, String name, CryptoProvider cryptoProvider, String passwordHash, String lastIp);

Account createAccount(String id, IdentifierType identifierType, UUID uuid, String name, CryptoProvider cryptoProvider, String passwordHash, String lastIp, boolean isPremium);
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
import me.mastercapexd.auth.link.user.LinkUserTemplate;

public abstract class AccountFactoryTemplate implements AccountFactory {
@Override
public Account createAccount(String id, IdentifierType identifierType, UUID uuid, String name, CryptoProvider cryptoProvider, String passwordHash, String lastIp) {
return createAccount(id, identifierType, uuid, name, cryptoProvider, passwordHash, lastIp, false);
}

@Override
public Account createAccount(String id, IdentifierType identifierType, UUID uuid, String name, CryptoProvider cryptoProvider, String passwordHash,
String lastIp, boolean isPremium) {
Expand Down

0 comments on commit 38194da

Please sign in to comment.