package org.give2peer.karma.response;

import org.give2peer.karma.entity.Item;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * GSON recipient for the response of `POST` `/item` request.
 */
public class FindItemsResponse
{
    int karma = 0;
    Item[] items;

    public FindItemsResponse() {} // maybe needed, maybe not

    /** @return the item that was added, as it is now in the server's database.                   *//****/
    public Item[] getItems() { return items;                                                       }
    /** @return the amount of karma gained by the action of finding these items                   *//**/
    public int getKarma()    { return karma;                                                       }

}

@@ -201,11 +201,10 @@
 of %60
-POS
+GE
 T%60 %60
@@ -208,16 +208,36 @@
 %60 %60/item
+s/around/%7Blat%7D/%7Blon%7D
 %60 reques
@@ -284,16 +284,19 @@
     int 
+   
 karma = 
@@ -321,70 +321,8 @@
 s;%0A%0A
-    public FindItemsResponse() %7B%7D // maybe needed, maybe not%0A%0A
     
@@ -401,32 +401,8 @@
 se. 
-                  *//***
 */%0A 
@@ -448,62 +448,8 @@
 ems;
-                                                      
  %7D%0A 
@@ -530,31 +530,10 @@
 tems
+.
  
-                  *//*
 */%0A 
@@ -580,63 +580,8 @@
 ma; 
-                                                      %7D%0A
+%7D
 %0A%7D%0A

Clean up `FindItemsResponse`. ⥺