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.JsonAutoDetect;
37  import com.fasterxml.jackson.annotation.JsonProperty;
38  
39  @JsonAutoDetect( fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDetect.Visibility.NONE, creatorVisibility = JsonAutoDetect.Visibility.NONE )
40  public class MeetingPointPOJO
41  {
42  
43      public static final String DEFAULT_WEBSITE_URL_RDV = "https://teleservices.paris.fr/rdvtitres/jsp/site/Portal.jsp?page=appointmenttitresearch";
44  
45      @JsonProperty( "id" )
46      private String _strId;
47      @JsonProperty( "name" )
48      private String _strName;
49      @JsonProperty( "longitude" )
50      private String _strLongitude;
51      @JsonProperty( "latitude" )
52      private String _strLatitude;
53      @JsonProperty( "public_entry_address" )
54      private String _strPublicAdress;
55      @JsonProperty( "zip_code" )
56      private String _strZipCode;
57      @JsonProperty( "city_name" )
58      private String _strCityName;
59      @JsonProperty( "website" )
60      private String _strWebsite;
61      @JsonProperty( "city_logo" )
62      private String _strCityLogo;
63  
64      public MeetingPointPOJO( )
65      {
66      }
67  
68      public MeetingPointPOJO( String strId, String strName, String strLongitude, String strLatitude, String strPublicAdress, String strZipCode,
69              String strCityName, String strWebsite, String strCityLogo )
70      {
71          this._strId = strId;
72          this._strName = strName;
73          this._strLongitude = strLongitude;
74          this._strLatitude = strLatitude;
75          this._strPublicAdress = strPublicAdress;
76          this._strZipCode = strZipCode;
77          this._strCityName = strCityName;
78          this._strWebsite = strWebsite;
79          this._strCityLogo = strCityLogo;
80      }
81  
82      public String getId( )
83      {
84          return _strId;
85      }
86  
87      public void setId( String strId )
88      {
89          this._strId = strId;
90      }
91  
92      public String getName( )
93      {
94          return _strName;
95      }
96  
97      public void setName( String strName )
98      {
99          this._strName = strName;
100     }
101 
102     public String getLongitude( )
103     {
104         return _strLongitude;
105     }
106 
107     public void setLongitude( String strLongitude )
108     {
109         this._strLongitude = strLongitude;
110     }
111 
112     public String getLatitude( )
113     {
114         return _strLatitude;
115     }
116 
117     public void setLatitude( String strLatitude )
118     {
119         this._strLatitude = strLatitude;
120     }
121 
122     public String getPublicAdress( )
123     {
124         return _strPublicAdress;
125     }
126 
127     public void setPublicAdress( String strPublicAdress )
128     {
129         this._strPublicAdress = strPublicAdress;
130     }
131 
132     public String getZipCode( )
133     {
134         return _strZipCode;
135     }
136 
137     public void setZipCode( String strZipCode )
138     {
139         this._strZipCode = strZipCode;
140     }
141 
142     public String getCityName( )
143     {
144         return _strCityName;
145     }
146 
147     public void setCityName( String strCityName )
148     {
149         this._strCityName = strCityName;
150     }
151 
152     public String getWebsite( )
153     {
154         return _strWebsite;
155     }
156 
157     public void setWebsite( String strWebsite )
158     {
159         this._strWebsite = strWebsite;
160     }
161 
162     public String getCityLogo( )
163     {
164         return _strCityLogo;
165     }
166 
167     public void setCityLogo( String strCityLogo )
168     {
169         this._strCityLogo = strCityLogo;
170     }
171 }