rename the package

This commit is contained in:
Lee
2024-04-13 20:44:05 +01:00
parent b14c969013
commit a15326a847
71 changed files with 31 additions and 31 deletions

View File

@ -0,0 +1,30 @@
package cc.fascinated.model.token;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter @NoArgsConstructor
public class MojangUsernameToUuidToken {
/**
* The UUID of the player.
*/
@JsonProperty("id")
private String uuid;
/**
* The name of the player.
*/
@JsonProperty("name")
private String username;
/**
* Check if the profile is valid.
*
* @return if the profile is valid
*/
public boolean isValid() {
return uuid != null && username != null;
}
}