package com.jakewharton.trakt.enumerations;

import java.util.HashMap;
import java.util.Map;
import com.jakewharton.trakt.TraktEnumeration;

public enum ActivityAction implements TraktEnumeration {
    All("all"),
    Watching("episode"),
    Scrobble("show"),
    Checkin("movie"),
    Seen("list"),
    Collection("collection"),
    Rating("rating"),
    Watchlist("watchlist"),
    Shout("shout"),
    Created("created"),
    ItemAdded("item_added");

    private final String value;

    private ActivityAction(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return this.value;
    }

    private static final Map<String, ActivityAction> STRING_MAPPING = new HashMap<String, ActivityAction>();

    static {
        for (ActivityAction via : ActivityAction.values()) {
            STRING_MAPPING.put(via.toString().toUpperCase(), via);
        }
    }

    public static ActivityAction fromValue(String value) {
        return STRING_MAPPING.get(value.toUpperCase());
    }
}

@@ -225,15 +225,16 @@
 ng(%22
-episode
+watching
 %22),%0A
@@ -252,11 +252,15 @@
 e(%22s
-how
+crobble
 %22),%0A
@@ -276,13 +276,15 @@
 in(%22
-movie
+checkin
 %22),%0A
@@ -293,20 +293,20 @@
   Seen(%22
-list
+seen
 %22),%0A    

Use correct ActivityActions mapping (watching, scrobble, checkin and seen).