-
Notifications
You must be signed in to change notification settings - Fork 3
/
Phonecontact.java
210 lines (173 loc) · 4.95 KB
/
Phonecontact.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
/*
* Folha de Pagamento
* HCM - Folha de pagamento
*
*
* Contact: seniorx-dev@senior.com.br
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package br.com.senior.hcm.payroll.pojos;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import br.com.senior.hcm.payroll.pojos.PhoneContactType;
import java.io.IOException;
/**
* Phonecontact
*/
public class Phonecontact {
@SerializedName("number")
private String number = null;
@SerializedName("extention")
private String extention = null;
@SerializedName("contacttype")
private PhoneContactType contacttype = null;
@SerializedName("countrycode")
private Integer countrycode = null;
@SerializedName("localcode")
private Integer localcode = null;
@SerializedName("id")
private String id = null;
public Phonecontact number(String number) {
this.number = number;
return this;
}
/**
* Número do telefone
* @return number
**/
@ApiModelProperty(required = true, value = "Número do telefone")
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public Phonecontact extention(String extention) {
this.extention = extention;
return this;
}
/**
* Ramal do telefone
* @return extention
**/
@ApiModelProperty(value = "Ramal do telefone")
public String getExtention() {
return extention;
}
public void setExtention(String extention) {
this.extention = extention;
}
public Phonecontact contacttype(PhoneContactType contacttype) {
this.contacttype = contacttype;
return this;
}
/**
* Get contacttype
* @return contacttype
**/
@ApiModelProperty(required = true, value = "")
public PhoneContactType getContacttype() {
return contacttype;
}
public void setContacttype(PhoneContactType contacttype) {
this.contacttype = contacttype;
}
public Phonecontact countrycode(Integer countrycode) {
this.countrycode = countrycode;
return this;
}
/**
* Código do país (DDI)
* @return countrycode
**/
@ApiModelProperty(value = "Código do país (DDI)")
public Integer getCountrycode() {
return countrycode;
}
public void setCountrycode(Integer countrycode) {
this.countrycode = countrycode;
}
public Phonecontact localcode(Integer localcode) {
this.localcode = localcode;
return this;
}
/**
* Código da localidade (DDD)
* @return localcode
**/
@ApiModelProperty(value = "Código da localidade (DDD)")
public Integer getLocalcode() {
return localcode;
}
public void setLocalcode(Integer localcode) {
this.localcode = localcode;
}
public Phonecontact id(String id) {
this.id = id;
return this;
}
/**
* Id do telefone
* @return id
**/
@ApiModelProperty(value = "Id do telefone")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Phonecontact phonecontact = (Phonecontact) o;
return Objects.equals(this.number, phonecontact.number) &&
Objects.equals(this.extention, phonecontact.extention) &&
Objects.equals(this.contacttype, phonecontact.contacttype) &&
Objects.equals(this.countrycode, phonecontact.countrycode) &&
Objects.equals(this.localcode, phonecontact.localcode) &&
Objects.equals(this.id, phonecontact.id);
}
@Override
public int hashCode() {
return Objects.hash(number, extention, contacttype, countrycode, localcode, id);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Phonecontact {\n");
sb.append(" number: ").append(toIndentedString(number)).append("\n");
sb.append(" extention: ").append(toIndentedString(extention)).append("\n");
sb.append(" contacttype: ").append(toIndentedString(contacttype)).append("\n");
sb.append(" countrycode: ").append(toIndentedString(countrycode)).append("\n");
sb.append(" localcode: ").append(toIndentedString(localcode)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}