package dao;

import java.util.List;

import model.Notification;
import model.Offer;
import model.Request;
public interface PlatformDao {


	public Boolean removeExchange(Integer request_id, Integer user_from);
	public Boolean declineExchange(Integer request_id, Integer user_to);
	public Boolean removeOffer(Integer offer_id, Integer user_id);
	public List<Request> showLatestTransaction(Integer sellerFrom, Integer sellerto);
	public List<Request> showUserReceivedRequest(Integer user_id, String status);
	public List<Request> showUserSentRequest(Integer user_id, String status);
	public List<Offer> showUserOfferList(Integer user_id, String status); 
	public Boolean acceptRequest(Integer request_id, Integer OfferFrom, Integer OfferTo);
	
 	public List<Offer> searchExcahnge(Integer sellerFrom, Integer sellerTo, Integer pointsFrom, Integer pointsToMin);
 	
 	public List<Offer> showRecommendationList(Integer sellerFrom, Integer sellerTo, Integer pointsFrom, Integer pointsToMin);
 	
 	public Boolean updateOfferStatus(Integer offer_id);
 	public Boolean updateRequestStatus(Integer request_id); 
 	public Boolean declineRequests(Integer request_id);
 	public Request requestData (Integer request_id); 
 	public List<Integer> listOfRequest(Integer OfferFrom, Integer OfferTo);
	
 	
 	
 	public boolean createNotification(Integer userId, Integer status, Integer eR_ID);
 	//NOTIFACTION TESTPAGE
 	public List<Notification> NotifListsByUserId(Integer userId);
	public List<Notification> getNotifUnRead(Integer userId);
	boolean sendExchangeToBlockChain(Integer Request_id, Integer userFrom, Integer userTo, Integer sellerFrom,
			Integer sellerTo, Integer pointFrom, Integer pointTo);
	public Integer selectUserFrom(Integer request_id); 

}

@@ -107,16 +107,48 @@
 quest;%0D%0A
+import model.user_to_seller;%0D%0A%0D%0A
 public i
@@ -173,18 +173,16 @@
 ao %7B%0D%0A%0D%0A
-%0D%0A
 %09public 
@@ -241,24 +241,26 @@
 ser_from);%0D%0A
+%0D%0A
 %09public Bool
@@ -314,24 +314,26 @@
  user_to);%0D%0A
+%0D%0A
 %09public Bool
@@ -381,24 +381,26 @@
  user_id);%0D%0A
+%0D%0A
 %09public List
@@ -467,24 +467,26 @@
 sellerto);%0D%0A
+%0D%0A
 %09public List
@@ -545,32 +545,34 @@
 tring status);%0D%0A
+%0D%0A
 %09public List%3CReq
@@ -627,24 +627,26 @@
 g status);%0D%0A
+%0D%0A
 %09public List
@@ -703,17 +703,18 @@
 status);
- 
+%0D%0A
 %0D%0A%09publi
@@ -795,20 +795,18 @@
 erTo);%0D%0A
-%09
 %0D%0A
- 
 %09public 
@@ -905,37 +905,34 @@
  pointsToMin);%0D%0A
- %09
 %0D%0A
- 
 %09public List%3COff
@@ -1007,33 +1007,37 @@
 eger pointsFrom,
- 
+%0D%0A%09%09%09
 Integer pointsTo
@@ -1043,21 +1043,18 @@
 oMin);%0D%0A
- %09
 %0D%0A
- 
 %09public 
@@ -1095,25 +1095,26 @@
 offer_id);%0D%0A
- 
+%0D%0A
 %09public Bool
@@ -1149,36 +1149,36 @@
 ger request_id);
- 
 %0D%0A
- 
+%0D%0A
 %09public Boolean 
@@ -1215,17 +1215,18 @@
 t_id);%0D%0A
- 
+%0D%0A
 %09public 
@@ -1244,17 +1244,16 @@
 uestData
- 
 (Integer
@@ -1269,12 +1269,12 @@
 id);
- 
+%0D%0A
 %0D%0A
- 
 %09pub
@@ -1347,20 +1347,10 @@
 );%0D%0A
-%09
 %0D%0A
- %09%0D%0A %09%0D%0A 
 %09pub
@@ -1433,12 +1433,14 @@
 );%0D%0A
- 
+%0D%0A
 %09//
+ 
 NOTI
@@ -1457,17 +1457,16 @@
 STPAGE%0D%0A
- 
 %09public 
@@ -1521,24 +1521,26 @@
 erId);%0D%0A
+%0D%0A
 %09public 
 List%3CNot
@@ -1531,34 +1531,19 @@
 %09public 
-List%3CNotification%3E
+int
  getNoti
@@ -1568,16 +1568,18 @@
 erId);%0D%0A
+%0D%0A
 %09boolean
@@ -1738,16 +1738,18 @@
 ntTo);%0D%0A
+%0D%0A
 %09public 
@@ -1791,16 +1791,445 @@
 est_id);
- 
+%0D%0A%0D%0A%09public boolean setNotifUnread(Integer notifID);%0D%0A%0D%0A%09public Boolean updatePoints(Integer userFrom, Integer userTo, Integer sellerFrom, Integer sellerTo,%0D%0A%09%09%09Integer pointsFrom, Integer pointsTo);%0D%0A%0D%0A%09public List%3Cuser_to_seller%3E selectPoints1(Integer userFrom, Integer userTo, Integer sellerFrom, Integer sellerTo);%0D%0A%0D%0A%09public List%3CInteger%3E selectPoints2(Integer userFrom, Integer userTo, Integer sellerFrom, Integer sellerTo);
 %0D%0A%0D%0A%7D%0D%0A

Update PlatformDao.java