package com.kii.thingif.trigger;

import android.text.TextUtils;

public enum EventSource {
    STATES("states"),
    SCHEDULE("schedule");
    private final String value;
    private EventSource(String value) {
        this.value = value;
    }
    public String getValue() {
        return this.value;
    }
    public static EventSource fromValue(String value) {
        for (EventSource eventSource : values()) {
            if (TextUtils.equals(eventSource.value, value)) {
                return eventSource;
            }
        }
        return null;
    }
}

@@ -101,14 +101,14 @@
 ES(%22
-states
+STATES
 %22),%0A
@@ -125,16 +125,16 @@
 LE(%22
-schedule
+SCHEDULE
 %22);%0A

EventSource should be upper case