/src/com/jieshuhuiyou/entity/notifications/AcceptBorrowRequestToOtherNotification.java
Java | 52 lines | 32 code | 13 blank | 7 comment | 0 complexity | e236de492fc99c1d9cee630e0168e618 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 AcceptBorrowRequestToOtherNotification extends
- AbstractNotification {
- private BorrowRequest request;
-
- @JSONCreator
- public AcceptBorrowRequestToOtherNotification(@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.getUser();
- }
- @Override
- public Type getType() {
- return Type.ACCEPT_BORROW_REQUEST_TO_OTHER;
- }
-
- // setters and getters
- public BorrowRequest getRequest() {
- return request;
- }
- public void setRequest(BorrowRequest request) {
- this.request = request;
- }
- }