package co.phoenixlab.discord.api.entities;

import com.google.gson.annotations.SerializedName;

public class ReadyMessage {

    @SerializedName("v")
    private int version;

    private User user;
    private String sessionId;
    @SerializedName("read_state")
    private ReadState[] readState;
    @SerializedName("private_channels")
    private PrivateChannel[] privateChannels;
    @SerializedName("heartbeat_interval")
    private long heartbeatInterval;
    @SerializedName("guilds")
    private Server[] servers;

    public ReadyMessage() {
    }

    public int getVersion() {
        return version;
    }

    public User getUser() {
        return user;
    }

    public String getSessionId() {
        return sessionId;
    }

    public ReadState[] getReadState() {
        return readState;
    }

    public PrivateChannel[] getPrivateChannels() {
        return privateChannels;
    }

    public long getHeartbeatInterval() {
        return heartbeatInterval;
    }

    public Server[] getServers() {
        return servers;
    }

    class ReadState {
        @SerializedName("mention_count")
        private int mentionCount;
        @SerializedName("last_message_id")
        private String lastMessageId;

        private String id;

        public int getMentionCount() {
            return mentionCount;
        }

        public String getLastMessageId() {
            return lastMessageId;
        }

        public String getId() {
            return id;
        }
    }
}

@@ -189,24 +189,58 @@
  User user;%0A
+    @SerializedName(%22session_id%22)%0A
     private 

Fix missing serialized name annotation