mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-06 01:26:42 +00:00
Convert to Ashcon API for NameHistory
This commit is contained in:
52
src/main/java/dev/plex/util/AshconInfo.java
Normal file
52
src/main/java/dev/plex/util/AshconInfo.java
Normal file
@ -0,0 +1,52 @@
|
||||
package dev.plex.util;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class AshconInfo
|
||||
{
|
||||
private String uuid;
|
||||
private String username;
|
||||
|
||||
@SerializedName("username_history")
|
||||
private UsernameHistory[] usernameHistories;
|
||||
|
||||
private Textures textures;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
public static class UsernameHistory
|
||||
{
|
||||
private String username;
|
||||
@SerializedName("changed_at")
|
||||
private LocalDateTime localDateTime;
|
||||
}
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
public static class Textures
|
||||
{
|
||||
private boolean custom;
|
||||
private boolean slim;
|
||||
private SkinData raw;
|
||||
}
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
public static class SkinData
|
||||
{
|
||||
private String value;
|
||||
private String signature;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user