1 /* 2 * Copyright (c) 2002-2022, 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.appointmentgru.business; 35 36 import fr.paris.lutece.plugins.appointment.business.appointment.Appointment; 37 38 /** 39 * This is the business class for the object AppointmentGru. 40 */ 41 public class AppointmentGru 42 { 43 /** The _str guid. */ 44 // Variables declarations 45 private String _strGuid; 46 47 /** The _str cuid. */ 48 private String _nCuid; 49 50 /** The _appointment. */ 51 private Appointment _appointment; 52 53 /** The _str mobile phone number. */ 54 private String _strMobilePhoneNumber; 55 56 /** The _str fixed phone number. */ 57 private String _strFixedPhoneNumber; 58 59 /** The _n type of the demand */ 60 private int _nDemandeTypeId; 61 62 /** 63 * Instantiates a new appointment gru. 64 * 65 * @param appointment 66 * the appointment 67 */ 68 public AppointmentGru( Appointment appointment ) 69 { 70 setAppointment( appointment ); 71 } 72 73 /** 74 * Gets the fixed phone number. 75 * 76 * @return the _strFixedPhoneNumber 77 */ 78 public String getFixedPhoneNumber( ) 79 { 80 return _strFixedPhoneNumber; 81 } 82 83 /** 84 * Sets the fixed phone number. 85 * 86 * @param fixedPhoneNumber 87 * the new fixed phone number 88 */ 89 public void setFixedPhoneNumber( String fixedPhoneNumber ) 90 { 91 this._strFixedPhoneNumber = fixedPhoneNumber; 92 } 93 94 /** 95 * Gets the appointment. 96 * 97 * @return the _appointment 98 */ 99 public Appointment getAppointment( ) 100 { 101 return _appointment; 102 } 103 104 /** 105 * Sets the appointment. 106 * 107 * @param appointment 108 * the new appointment 109 */ 110 public void setAppointment( Appointment appointment ) 111 { 112 this._appointment = appointment; 113 } 114 115 /** 116 * Returns the _strMobilePhoneNumber. 117 * 118 * @return The _strMobilePhoneNumber 119 */ 120 public String getMobilePhoneNumber( ) 121 { 122 return _strMobilePhoneNumber; 123 } 124 125 /** 126 * Sets the mobilePhoneNumber. 127 * 128 * @param mobilePhoneNumber 129 * The mobilePhoneNumber 130 */ 131 public void setMobilePhoneNumber( String mobilePhoneNumber ) 132 { 133 _strMobilePhoneNumber = mobilePhoneNumber; 134 } 135 136 /** 137 * Returns the Guid. 138 * 139 * @return The Guid 140 */ 141 public String getGuid( ) 142 { 143 return _strGuid; 144 } 145 146 /** 147 * Sets the Guid. 148 * 149 * @param strGuid 150 * The Guid 151 */ 152 public void setGuid( String strGuid ) 153 { 154 _strGuid = strGuid; 155 } 156 157 /** 158 * Returns the Cuid. 159 * 160 * @return The Cuid 161 */ 162 public String getCuid( ) 163 { 164 return _nCuid; 165 } 166 167 /** 168 * Sets the Cuid. 169 * 170 * @param nCuid 171 * The Cuid 172 */ 173 public void setCuid( String nCuid ) 174 { 175 _nCuid = nCuid; 176 } 177 178 /** 179 * @return the DemandeTypeId 180 */ 181 public int getDemandeTypeId( ) 182 { 183 return _nDemandeTypeId; 184 } 185 186 /** 187 * @param nDemandeTypeId 188 * the DemandeTypeId to set 189 */ 190 public void setDemandeTypeId( int nDemandeTypeId ) 191 { 192 this._nDemandeTypeId = nDemandeTypeId; 193 } 194 195 }