PageRenderTime 74ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

/src/com/jieshuhuiyou/entity/notifications/SharingDeletedNotification.java

https://bitbucket.org/psjay/ants-bookbase
Java | 52 lines | 34 code | 11 blank | 7 comment | 0 complexity | 10411cb8e4235caee332343c67d52364 MD5 | raw file
  1. package com.jieshuhuiyou.entity.notifications;
  2. import com.alibaba.fastjson.annotation.JSONCreator;
  3. import com.alibaba.fastjson.annotation.JSONField;
  4. import com.jieshuhuiyou.entity.Notification.Type;
  5. import com.jieshuhuiyou.entity.Sharing;
  6. import com.jieshuhuiyou.entity.User;
  7. /**
  8. * ???????
  9. * @author PSJay
  10. *
  11. */
  12. public class SharingDeletedNotification extends AbstractNotification {
  13. private Sharing sharing;
  14. private User user;
  15. @JSONCreator
  16. public SharingDeletedNotification(@JSONField(name = "sharing") Sharing sharing
  17. , @JSONField(name = "user") User user) {
  18. this.sharing = sharing;
  19. this.user = user;
  20. }
  21. @Override
  22. public String toHTML() {
  23. // TODO Auto-generated method stub
  24. return null;
  25. }
  26. @Override
  27. public User getOwner() {
  28. return user;
  29. }
  30. @Override
  31. public Type getType() {
  32. return Type.SHARING_DELETED;
  33. }
  34. // setters and getters
  35. public Sharing getSharing() {
  36. return sharing;
  37. }
  38. public void setSharing(Sharing sharing) {
  39. this.sharing = sharing;
  40. }
  41. }