
WatchlistManagerAPI=WL.Class(Object,function()
{this.apiid=new WL.Objects.Guid("9EDACA58-1BB1-4116-9A78-EDA99835F926");},function(type)
{var errorHandler=WL.Utils.requestErrorHandler;type.apiRequest=WL.Utils.webRequest;type.addToWatchlist=function(auctionID,returner)
{var request=new WL.ServerAPI.Request(this.apiid,"AddToWatchlist");request.body.writeElementString("auctionID",auctionID);var result={error:true};return this.apiRequest(returner,request,function(reader)
{result.error=false;return result;},errorHandler,result);}
type.removeFromWatchlist=function(userID,auctionIDs,returner)
{var request=new WL.ServerAPI.Request(this.apiid,"RemoveFromWatchlist");request.body.writeElementString("userID",userID);request.body.writeArray("auctionIDs","id",auctionIDs);return this.apiRequest(returner,request,function(){return{error:false};},errorHandler,{error:true});}});window.watchlistManagerAPI=new WatchlistManagerAPI();
