package no.stelar7.api.r4j.basic.constants.types.val;

import no.stelar7.api.r4j.basic.constants.types.CodedEnum;

import java.util.Optional;
import java.util.stream.Stream;

public enum Season implements CodedEnum<Season>
{
    NONE(""),
    ACT_1("3f61c772-4560-cd3f-5d3f-a7ab5abda6b3"),
    ACT_2("0530b9c4-4980-f2ee-df5d-09864cd00542"),
    ACT_3("46ea6166-4573-1128-9cea-60a15640059b"),
    ;
    
    
    private final String mode;
    
    /**
     * Constructor for MapType
     *
     * @param code the mapId
     */
    Season(final String code)
    {
        this.mode = code;
    }
    
    /**
     * Gets from code.
     *
     * @param mapId the map id
     * @return the from code
     */
    public Optional<Season> getFromCode(final String mapId)
    {
        return Stream.of(Season.values()).filter(t -> t.mode.equals(mapId)).findFirst();
    }
    
    @Override
    public String prettyName()
    {
        switch (this)
        {
            default:
                return "This enum does not have a pretty name";
        }
    }
    
    /**
     * Gets id.
     *
     * @return the id
     */
    public String getId()
    {
        return this.mode;
    }
    
    
    /**
     * Used internaly in the api...
     *
     * @return the value
     */
    public String getValue()
    {
        return getId();
    }
    
}

@@ -242,24 +242,148 @@
 E(%22%22),%0D%0A    
+CLOSED_BETA(%220df5adb9-4dcb-6899-1306-3e9860661dd3%22),%0D%0A    EPISODE_1(%22fcf2c8f4-4324-e50b-2e23-718e4a3ab046%22),%0D%0A    EPISODE_1_
 ACT_1(%223f61c
@@ -418,24 +418,34 @@
 6b3%22),%0D%0A    
+EPISODE_1_
 ACT_2(%220530b
@@ -484,16 +484,26 @@
 ),%0D%0A    
+EPISODE_1_
 ACT_3(%224
@@ -538,24 +538,266 @@
 640059b%22),%0D%0A
+    EPISODE_2(%2271c81c67-4fae-ceb1-844c-aab2bb8710fa%22),%0D%0A    EPISODE_2_ACT_1(%2297b6e739-44cc-ffa7-49ad-398ba502ceb0%22),%0D%0A    EPISODE_2_ACT_2(%22ab57ef51-4e59-da91-cc8d-51a5a2b9b8ff%22),%0D%0A    EPISODE_2_ACT_3(%2252e9749a-429b-7060-99fe-4595426a0cf7%22),%0D%0A
     ;%0D%0A    %0D

Update valorant seasons