Back to project page android-reddit.
The source code is released under:
MIT License
If you think the Android project android-reddit listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.pocketreddit.library.things; //from w w w. j a v a 2 s . co m import com.pocketreddit.library.things.Kind; public enum Kind { COMMENT("t1"), THREAD("t3"), MESSAGE("t4"), SUBREDDIT("t5"), MORE("more"), LISTING("Listing"); private String id; private Kind(String id) { this.id = id; } public String getId() { return id; } public static Kind toKind(String id) { for (Kind kind : Kind.values()) { if (kind.id.equals(id)) return kind; } throw new IllegalArgumentException("Could not find kind for id: " + id); } }