/src/com/jieshuhuiyou/entity/notifications/CancleBorrowRequestNotification.java
Java | 48 lines | 31 code | 11 blank | 6 comment | 0 complexity | 0c871b9537fdaa89742ff97f9ee78d55 MD5 | raw file
- package com.jieshuhuiyou.entity.notifications;
- import com.alibaba.fastjson.annotation.JSONCreator;
- import com.alibaba.fastjson.annotation.JSONField;
- import com.jieshuhuiyou.entity.BorrowRequest;
- import com.jieshuhuiyou.entity.Notification.Type;
- import com.jieshuhuiyou.entity.User;
- /**
- * ???????????
- * @author PSJay
- *
- */
- public class CancleBorrowRequestNotification extends AbstractNotification {
- private BorrowRequest request;
-
- @JSONCreator
- public CancleBorrowRequestNotification(@JSONField(name = "request") BorrowRequest request) {
- this.request = request;
- }
-
- @Override
- public String toHTML() {
- // TODO Auto-generated method stub
- return null;
- }
- @Override
- public User getOwner() {
- return request.getSharing().getUser();
- }
- @Override
- public Type getType() {
- return Type.CANCLE_BORROW_REQUEST;
- }
- public BorrowRequest getRequest() {
- return request;
- }
- public void setRequest(BorrowRequest request) {
- this.request = request;
- }
- }