View Javadoc
1   /*
2    * Copyright (c) 2002-2024, 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.grubusiness.business.demand;
35  
36  import com.fasterxml.jackson.annotation.JsonProperty;
37  
38  public class DemandType
39  {
40      @JsonProperty( "id" )
41      private int _nId;
42      
43      @JsonProperty( "id_demand_type" )
44      private int _nIdDemandType;
45  
46      @JsonProperty( "label" )
47      private String _strLabel;
48  
49      @JsonProperty( "url" )
50      private String _strUrl;
51  
52      @JsonProperty( "app_code" )
53      private String _strAppCode;
54  
55      @JsonProperty( "category" )
56      private String _strCategory;
57  
58      
59      /**
60       * @return the _nId
61       */
62      public int getId( )
63      {
64          return _nId;
65      }
66  
67      /**
68       * @param _nId the _nId to set
69       */
70      public void setId( int _nId )
71      {
72          this._nId = _nId;
73      }
74  
75      /**
76       * Get the id demand type
77       * 
78       * @return the id demand type
79       */
80      @JsonProperty( "id_demand_type" )
81      public int getIdDemandType( )
82      {
83          return _nIdDemandType;
84      }
85  
86      /**
87       * Set the id demand type
88       * 
89       * @param nIdDemandType
90       *            the id deman type
91       */
92      @JsonProperty( "id_demand_type" )
93      public void setIdDemandType( int nIdDemandType )
94      {
95          _nIdDemandType = nIdDemandType;
96      }
97  
98      /**
99       * Get the label
100      * 
101      * @return the label
102      */
103     @JsonProperty( "label" )
104     public String getLabel( )
105     {
106         return _strLabel;
107     }
108 
109     /**
110      * Set the label
111      * 
112      * @param strLabel
113      *            the label
114      */
115     public void setLabel( String strLabel )
116     {
117         _strLabel = strLabel;
118     }
119 
120     /**
121      * Get the url of the resource
122      * 
123      * @return the url of the resource
124      */
125 
126     @JsonProperty( "url" )
127     public String getUrl( )
128     {
129         return _strUrl;
130     }
131 
132     /**
133      * Set the url of the form
134      * 
135      * @param strUrl
136      *            the url of the form
137      */
138     public void setUrl( String strUrl )
139     {
140         _strUrl = strUrl;
141     }
142 
143     /**
144      * Get the app code
145      * 
146      * @return the app code
147      */
148 
149     @JsonProperty( "app_code" )
150     public String getAppCode( )
151     {
152         return _strAppCode;
153     }
154 
155     /**
156      * Set the app code
157      * 
158      * @param strUrl
159      *            the app code
160      */
161     public void setAppCode( String strAppCode )
162     {
163         _strAppCode = strAppCode;
164     }
165 
166     /**
167      * Returns the Category
168      * 
169      * @return The Category
170      */
171     @JsonProperty( "category" )
172     public String getCategory( )
173     {
174         return _strCategory;
175     }
176 
177     /**
178      * Sets the Category
179      * 
180      * @param strCategory
181      *            The Category
182      */
183     public void setCategory( String strCategory )
184     {
185         _strCategory = strCategory;
186     }
187 
188 }