PageRenderTime 66ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/src/com/jieshuhuiyou/entity/events/AbstractEvent.java

https://bitbucket.org/psjay/ants-bookbase
Java | 35 lines | 21 code | 9 blank | 5 comment | 0 complexity | fac521082e08396d0b5fbed1613585cd MD5 | raw file
  1. package com.jieshuhuiyou.entity.events;
  2. import java.util.Date;
  3. import java.util.List;
  4. import com.alibaba.fastjson.JSON;
  5. import com.jieshuhuiyou.Config;
  6. import com.jieshuhuiyou.entity.Book;
  7. import com.jieshuhuiyou.entity.Event;
  8. import com.jieshuhuiyou.entity.Event.EventType;
  9. import com.jieshuhuiyou.entity.User;
  10. import com.jieshuhuiyou.util.memcachedHelper;
  11. /**
  12. * ?????
  13. * @author Michael
  14. *
  15. */
  16. public abstract class AbstractEvent {
  17. public String toJSONStr(Content content){
  18. return JSON.toJSONString(content);
  19. }
  20. public Date setTimeline(){
  21. return new Date();
  22. }
  23. public abstract EventType setType();
  24. public abstract String setText();
  25. public abstract Event toEventEntity();
  26. }