Back to project page hpush.
The source code is released under:
MIT License
If you think the Android project hpush 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.hpush.data; //from www . ja v a2 s . c o m /** * Request types or names * * @author Xinyue Zhao */ public enum FunctionType { Edit("edit"), Insert("insert"), Delete("delete"); /** * Name of function. */ private String mName; /** * Constructor of {@link com.hpush.data.FunctionType}. * @param name Name of function. */ FunctionType(String name) { mName = name; } /** * * @return Name of function. */ public String getName() { return mName; } public static FunctionType fromName(String name) { switch (name) { case "edit": return Edit; case "insert": return Insert; case "delete": return Delete; default: return null; } } }