Subversion Repositories SmartDukaan

Rev

Rev 1962 | Rev 2066 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1961 ankur.sing 1
package in.shop2020.catalog.dashboard.client;
2
 
3
 
4
import in.shop2020.catalog.dashboard.shared.Item;
5
 
6
import java.util.List;
7
 
8
import com.google.gwt.user.client.rpc.AsyncCallback;
9
 
10
/**
11
 * The async counterpart of <code>CatalogService</code>.
12
 */
13
public interface CatalogServiceAsync {
1992 ankur.sing 14
    void updateItem(Item item, AsyncCallback<Boolean> callback);
1961 ankur.sing 15
    void getAllItems(AsyncCallback<List<Item>> callback);
16
    void getBestDeals(AsyncCallback<List<Item>> callback);
17
    void getBestSellers(AsyncCallback<List<Item>> callback);
18
    void getLatestArrivals(AsyncCallback<List<Item>> callback);
19
    void getItem(long itemId, AsyncCallback<Item> callback);
20
    void reduceReservationCount(long itemId, long warehouseId, double quantity, AsyncCallback<Void> callback);
21
}