/src/com/jieshuhuiyou/entity/events/AbstractEvent.java
Java | 35 lines | 21 code | 9 blank | 5 comment | 0 complexity | fac521082e08396d0b5fbed1613585cd MD5 | raw file
- package com.jieshuhuiyou.entity.events;
- import java.util.Date;
- import java.util.List;
- import com.alibaba.fastjson.JSON;
- import com.jieshuhuiyou.Config;
- import com.jieshuhuiyou.entity.Book;
- import com.jieshuhuiyou.entity.Event;
- import com.jieshuhuiyou.entity.Event.EventType;
- import com.jieshuhuiyou.entity.User;
- import com.jieshuhuiyou.util.memcachedHelper;
- /**
- * ?????
- * @author Michael
- *
- */
- public abstract class AbstractEvent {
-
-
-
- public String toJSONStr(Content content){
- return JSON.toJSONString(content);
- }
-
- public Date setTimeline(){
- return new Date();
- }
- public abstract EventType setType();
-
- public abstract String setText();
- public abstract Event toEventEntity();
- }