package kz.cafe.client.rest.wrappers;

import java.util.*;
import javax.xml.bind.annotation.*;

@XmlRootElement(name="response")
public class JRCafeListResponse extends JRAbstractDeleteableResponse{
   
   @XmlElementWrapper(name="list")   
   @XmlElement(name="item")   
   public List<JMItem> list = new ArrayList<JMItem>();
   
   
   public JMItem add(){
      JMItem jmItem = new JMItem();
      list.add(jmItem);
      
      return jmItem;
   }
   
   
   public static class JMItem extends JMAbstractDescriptor{
      public Integer type;
      public Integer rate;
      public Integer price;
      public int     timeOpen;
      public int     timeClose;
      public int     timeOpenWeekend;
      public int     timeCloseWeekend;
      public String  phone;
      public String  address;
      public String  service;
      public String  coordinates;
      public boolean hasDelivery;
      public boolean hasReservation;
      public String  types;
      public String  requirements;
      public String  cuisines;
      public Integer tables_total;
      public Integer tables_free;
      public Integer bill_average_min;
      public Integer bill_average_max;
      public Integer city;
      public int timeCloseMo;
      public int timeOpenMo;
      public int timeCloseTu;
      public int timeOpenTu;
      public int timeCloseWe;
      public int timeOpenWe;
      public int timeCloseTh;
      public int timeOpenTh;
      public int timeCloseFr;
      public int timeOpenFr;
      public int timeCloseSa;
      public int timeOpenSa;
      public int timeCloseSu;
      public int timeOpenSu;
      public Integer timeOrdersFrom;
      public Integer timeOrdersTo;
      public Integer timeReservationFrom;
      public Integer timeReservationTo;
   }

   

   public JRCafeListResponse(){
   }


   public JRCafeListResponse(Throwable e){
      super(e);
   }
}
