Files
Backend/src/main/java/cc/fascinated/service/mojang/model/MojangUsernameToUuid.java

28 lines
491 B
Java
Raw Normal View History

2024-04-08 05:29:05 +01:00
package cc.fascinated.service.mojang.model;
2024-04-08 04:56:59 +01:00
import lombok.Getter;
2024-04-08 05:22:54 +01:00
import lombok.NoArgsConstructor;
2024-04-08 04:56:59 +01:00
2024-04-08 05:22:54 +01:00
@Getter @NoArgsConstructor
public class MojangUsernameToUuid {
2024-04-08 04:56:59 +01:00
2024-04-08 05:22:54 +01:00
/**
* The UUID of the player.
*/
2024-04-08 04:56:59 +01:00
private String id;
2024-04-08 05:22:54 +01:00
/**
* The name of the player.
*/
private String name;
2024-04-08 04:56:59 +01:00
/**
* Check if the profile is valid.
*
* @return if the profile is valid
*/
public boolean isValid() {
return id != null && name != null;
}
}