/src/com/jieshuhuiyou/entity/notifications/SharingDeletedNotification.java
Java | 52 lines | 34 code | 11 blank | 7 comment | 0 complexity | 10411cb8e4235caee332343c67d52364 MD5 | raw file
- package com.jieshuhuiyou.entity.notifications;
- import com.alibaba.fastjson.annotation.JSONCreator;
- import com.alibaba.fastjson.annotation.JSONField;
- import com.jieshuhuiyou.entity.Notification.Type;
- import com.jieshuhuiyou.entity.Sharing;
- import com.jieshuhuiyou.entity.User;
- /**
- * ???????
- * @author PSJay
- *
- */
- public class SharingDeletedNotification extends AbstractNotification {
- private Sharing sharing;
-
- private User user;
-
- @JSONCreator
- public SharingDeletedNotification(@JSONField(name = "sharing") Sharing sharing
- , @JSONField(name = "user") User user) {
- this.sharing = sharing;
- this.user = user;
- }
-
- @Override
- public String toHTML() {
- // TODO Auto-generated method stub
- return null;
- }
- @Override
- public User getOwner() {
- return user;
- }
- @Override
- public Type getType() {
- return Type.SHARING_DELETED;
- }
-
- // setters and getters
- public Sharing getSharing() {
- return sharing;
- }
- public void setSharing(Sharing sharing) {
- this.sharing = sharing;
- }
- }