Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.thinksmart.happyapp.model;
- /**
- * Holds the different types of tasks a user is asked to do. Helpful when
- * randomising the list to avoid too many in a single area, ie too many for your
- * colleagues!!
- *
- * @author DaveLawrence
- *
- */
- public enum TaskCategoryEnum
- // implements Externalizable
- {
- ONE_FOR_YOU("Something for you..."), PAY_IT_FORWARD("Pay it forward..."), KARMA("Good karma...");
- private String value;
- private TaskCategoryEnum(String value) {
- this.value = value;
- }
- public String getTitleText() {
- return value;
- }
- // @Override
- // public int getVersion() {
- // return 1;
- // }
- // @Override
- // public void externalize(DataOutputStream out) throws IOException {
- // // Util.writeObject(ONE_FOR_YOU, out);
- // // Util.writeObject(PAY_IT_FORWARD, out);
- // // Util.writeObject(KARMA, out);
- // Util.writeUTF(value, out);
- // }
- //
- // @Override
- // public void internalize(int version, DataInputStream in) throws
- // IOException {
- // value = Util.readUTF(in);
- // // ONE_FOR_YOU = (TaskCategoryEnum) Util.readObject(in);
- // // PAY_IT_FORWARD = (TaskCategoryEnum) Util.readObject(in);
- // // taskCategory = (TaskCategoryEnum) Util.readObject(in);
- // }
- //
- // @Override
- // public String getObjectId() {
- // return "TaskCategoryEnum";
- // }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement