package service;

import java.util.List;

import model.Notification;
import model.Offer;
import model.Request;

public interface PlatformService {
	//Remove Exchange
	public Boolean removeExchange(Integer request_id, Integer user_from);
	//Decline Exchange
	public Boolean declineExchange(Integer request_id, Integer user_to, Integer user_from);
	//Remove Offer
	public Boolean removeOffer(Integer offer_id, Integer user_id);
	//Show Latest transaction list
	public List<Request> showLatestTransaction(Integer sellerFrom, Integer sellerTo);
	//Show user received request by status
	public List<Request> showUserReceivedRequest(Integer user_id, String status);
	//Show user sent request by status 
	public List<Request> showUserSentRequest(Integer user_id, String status);
	//Show offer list by status 
	public List<Offer> showUserOfferList(Integer user_id, String status); 
	//Search exchange 
	public List<Offer> searchExcahnge(Integer sellerFrom, Integer sellerTo, Integer pointsFrom, Integer pointsToMin);
	//Show recommendation list
	public List<Offer> showRecommendationList(Integer sellerFrom, Integer sellerTo, Integer pointsFrom,
			Integer pointsToMin);
	//Update offer status
	public Boolean updateOfferStatus(Integer offer_id, Integer user_from);

	public Boolean updateRequestStatus(Integer request_id, Integer user_from);
	//Accept request and all of exchange process 
	public Boolean acceptRequest(Integer request_id);
	
	public Boolean createNotification(Integer userId, Integer status, Integer eR_ID);
	
	
	//NOTIFACTION TESTPAGE
	public List<Notification> NotifListsByUserId(Integer userId);
	public List<Notification> getNotifUnread(Integer userId);

	
}

@@ -1614,28 +1614,61 @@
 lic 
-List%3CNotification%3E g
+int getNotifUnread(Integer userId);%0A%09public boolean s
 etNo
@@ -1685,22 +1685,23 @@
 Integer 
-userId
+notifID
 );%0A%0A%09%0A%7D%0A

Update PlatformService.java