rename the package
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user