Files
Backend/src/main/java/cc/fascinated/service/mojang/model/MojangUsernameToUuid.java
2024-04-08 05:29:05 +01:00

28 lines
491 B
Java

package cc.fascinated.service.mojang.model;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter @NoArgsConstructor
public class MojangUsernameToUuid {
/**
* The UUID of the player.
*/
private String id;
/**
* The name of the player.
*/
private String name;
/**
* Check if the profile is valid.
*
* @return if the profile is valid
*/
public boolean isValid() {
return id != null && name != null;
}
}