View Javadoc
1   /*
2    * Copyright (c) 2002-2023, City of Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.appointment.modules.rest.pojo;
35  
36  import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
37  import com.fasterxml.jackson.annotation.JsonProperty;
38  import java.util.List;
39  
40  @JsonIgnoreProperties( ignoreUnknown = true )
41  public class SolrResponseMeetingPointPOJO
42  {
43  
44      @JsonProperty( "grouped" )
45      private Grouped _grouped;
46  
47      public Grouped getGrouped( )
48      {
49          return _grouped;
50      }
51  
52      public void setGrouped( Grouped grouped )
53      {
54          this._grouped = grouped;
55      }
56  
57      @JsonIgnoreProperties( ignoreUnknown = true )
58      public static class Grouped
59      {
60  
61          @JsonProperty( "uid" )
62          private GroupedByUidForm _groupedByUidForm;
63  
64          public GroupedByUidForm getGroupedByUidForm( )
65          {
66              return _groupedByUidForm;
67          }
68  
69          public void setGroupedByUidForm( GroupedByUidForm groupedByUidForm )
70          {
71              this._groupedByUidForm = groupedByUidForm;
72          }
73      }
74  
75      @JsonIgnoreProperties( ignoreUnknown = true )
76      public static class GroupedByUidForm
77      {
78  
79          @JsonProperty( "groups" )
80          private List<Group> _groups;
81  
82          public List<Group> getGroups( )
83          {
84              return _groups;
85          }
86  
87          public void setGroups( List<Group> groups )
88          {
89              this._groups = groups;
90          }
91  
92      }
93  
94      @JsonIgnoreProperties( ignoreUnknown = true )
95      public static class Group
96      {
97  
98          @JsonProperty( "groupValue" )
99          private String _groupValue;
100         @JsonProperty( "doclist" )
101         private DocList _docList;
102 
103         public String getGroupValue( )
104         {
105             return _groupValue;
106         }
107 
108         public void setGroupValue( String groupValue )
109         {
110             this._groupValue = groupValue;
111         }
112 
113         public DocList getDocList( )
114         {
115             return _docList;
116         }
117 
118         public void setDocList( DocList docList )
119         {
120             this._docList = docList;
121         }
122 
123     }
124 
125     @JsonIgnoreProperties( ignoreUnknown = true )
126     public static class DocList
127     {
128 
129         @JsonProperty( "docs" )
130         private List<SolrMeetingPointPOJO> _docs;
131 
132         public List<SolrMeetingPointPOJO> getDocs( )
133         {
134             return _docs;
135         }
136 
137         public void setDocs( List<SolrMeetingPointPOJO> docs )
138         {
139             this._docs = docs;
140         }
141     }
142 }