Пример #1
0
 public Recommend recommend(long userId, Collection<Long> shopIds) throws IOException {
   Recommend recommend = new Recommend(client);
   recommend.setUserId(userId);
   recommend.setIds(shopIds);
   client.initialize(recommend);
   return recommend;
 }
Пример #2
0
 public ListByReward listByReward(long userId, int mark) throws IOException {
   ListByReward listByReward = new ListByReward(client);
   listByReward.setUserId(userId);
   listByReward.setMark(mark);
   client.initialize(listByReward);
   return listByReward;
 }
Пример #3
0
 public Get get(Long userId, Long id) throws IOException {
   Get get = new Get(client);
   get.setUserId(userId);
   get.setId(id);
   client.initialize(get);
   return get;
 }
Пример #4
0
 public List list(long userId, Collection<Long> ids) throws IOException {
   List list = new List(client);
   list.setUserId(userId);
   list.setIds(ids);
   client.initialize(list);
   return list;
 }
Пример #5
0
 public Start start(long userId, int mark) throws IOException {
   Start start = new Start(client);
   start.setUserId(userId);
   start.setMark(mark);
   client.initialize(start);
   return start;
 }