Subversion Repositories SmartDukaan

Rev

Rev 22577 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22577 Rev 22598
Line 6... Line 6...
6
 */
6
 */
7
 
7
 
8
package com.aramex.stub;
8
package com.aramex.stub;
9
 
9
 
10
public class ClientInfo  implements java.io.Serializable {
10
public class ClientInfo  implements java.io.Serializable {
11
    @Override
-
 
12
	public String toString() {
-
 
13
		return "ClientInfo [userName=" + userName + ", password=" + password + ", version=" + version + ", accountNumber=" + accountNumber
-
 
14
				+ ", accountPin=" + accountPin + ", accountEntity=" + accountEntity + ", accountCountryCode=" + accountCountryCode
-
 
15
				+ ", source=" + source + "]";
-
 
16
	}
-
 
17
 
-
 
18
	private java.lang.String userName;
11
    private java.lang.String userName;
19
 
12
 
20
    private java.lang.String password;
13
    private java.lang.String password;
21
 
14
 
22
    private java.lang.String version;
15
    private java.lang.String version;
23
 
16
 
Line 29... Line 22...
29
 
22
 
30
    private java.lang.String accountCountryCode;
23
    private java.lang.String accountCountryCode;
31
 
24
 
32
    private java.lang.Integer source;
25
    private java.lang.Integer source;
33
 
26
 
-
 
27
    private java.lang.String preferredLanguageCode;
-
 
28
 
34
    public ClientInfo() {
29
    public ClientInfo() {
35
    }
30
    }
36
 
31
 
37
    public ClientInfo(
32
    public ClientInfo(
38
           java.lang.String userName,
33
           java.lang.String userName,
Line 40... Line 35...
40
           java.lang.String version,
35
           java.lang.String version,
41
           java.lang.String accountNumber,
36
           java.lang.String accountNumber,
42
           java.lang.String accountPin,
37
           java.lang.String accountPin,
43
           java.lang.String accountEntity,
38
           java.lang.String accountEntity,
44
           java.lang.String accountCountryCode,
39
           java.lang.String accountCountryCode,
45
           java.lang.Integer source) {
40
           java.lang.Integer source,
-
 
41
           java.lang.String preferredLanguageCode) {
46
           this.userName = userName;
42
           this.userName = userName;
47
           this.password = password;
43
           this.password = password;
48
           this.version = version;
44
           this.version = version;
49
           this.accountNumber = accountNumber;
45
           this.accountNumber = accountNumber;
50
           this.accountPin = accountPin;
46
           this.accountPin = accountPin;
51
           this.accountEntity = accountEntity;
47
           this.accountEntity = accountEntity;
52
           this.accountCountryCode = accountCountryCode;
48
           this.accountCountryCode = accountCountryCode;
53
           this.source = source;
49
           this.source = source;
-
 
50
           this.preferredLanguageCode = preferredLanguageCode;
54
    }
51
    }
55
 
52
 
56
 
53
 
57
    /**
54
    /**
58
     * Gets the userName value for this ClientInfo.
55
     * Gets the userName value for this ClientInfo.
Line 211... Line 208...
211
     */
208
     */
212
    public void setSource(java.lang.Integer source) {
209
    public void setSource(java.lang.Integer source) {
213
        this.source = source;
210
        this.source = source;
214
    }
211
    }
215
 
212
 
-
 
213
 
-
 
214
    /**
-
 
215
     * Gets the preferredLanguageCode value for this ClientInfo.
-
 
216
     * 
-
 
217
     * @return preferredLanguageCode
-
 
218
     */
-
 
219
    public java.lang.String getPreferredLanguageCode() {
-
 
220
        return preferredLanguageCode;
-
 
221
    }
-
 
222
 
-
 
223
 
-
 
224
    /**
-
 
225
     * Sets the preferredLanguageCode value for this ClientInfo.
-
 
226
     * 
-
 
227
     * @param preferredLanguageCode
-
 
228
     */
-
 
229
    public void setPreferredLanguageCode(java.lang.String preferredLanguageCode) {
-
 
230
        this.preferredLanguageCode = preferredLanguageCode;
-
 
231
    }
-
 
232
 
216
    private java.lang.Object __equalsCalc = null;
233
    private java.lang.Object __equalsCalc = null;
217
    public synchronized boolean equals(java.lang.Object obj) {
234
    public synchronized boolean equals(java.lang.Object obj) {
218
        if (!(obj instanceof ClientInfo)) return false;
235
        if (!(obj instanceof ClientInfo)) return false;
219
        ClientInfo other = (ClientInfo) obj;
236
        ClientInfo other = (ClientInfo) obj;
220
        if (obj == null) return false;
237
        if (obj == null) return false;
Line 246... Line 263...
246
            ((this.accountCountryCode==null && other.getAccountCountryCode()==null) || 
263
            ((this.accountCountryCode==null && other.getAccountCountryCode()==null) || 
247
             (this.accountCountryCode!=null &&
264
             (this.accountCountryCode!=null &&
248
              this.accountCountryCode.equals(other.getAccountCountryCode()))) &&
265
              this.accountCountryCode.equals(other.getAccountCountryCode()))) &&
249
            ((this.source==null && other.getSource()==null) || 
266
            ((this.source==null && other.getSource()==null) || 
250
             (this.source!=null &&
267
             (this.source!=null &&
251
              this.source.equals(other.getSource())));
268
              this.source.equals(other.getSource()))) &&
-
 
269
            ((this.preferredLanguageCode==null && other.getPreferredLanguageCode()==null) || 
-
 
270
             (this.preferredLanguageCode!=null &&
-
 
271
              this.preferredLanguageCode.equals(other.getPreferredLanguageCode())));
252
        __equalsCalc = null;
272
        __equalsCalc = null;
253
        return _equals;
273
        return _equals;
254
    }
274
    }
255
 
275
 
256
    private boolean __hashCodeCalc = false;
276
    private boolean __hashCodeCalc = false;
Line 282... Line 302...
282
            _hashCode += getAccountCountryCode().hashCode();
302
            _hashCode += getAccountCountryCode().hashCode();
283
        }
303
        }
284
        if (getSource() != null) {
304
        if (getSource() != null) {
285
            _hashCode += getSource().hashCode();
305
            _hashCode += getSource().hashCode();
286
        }
306
        }
-
 
307
        if (getPreferredLanguageCode() != null) {
-
 
308
            _hashCode += getPreferredLanguageCode().hashCode();
-
 
309
        }
287
        __hashCodeCalc = false;
310
        __hashCodeCalc = false;
288
        return _hashCode;
311
        return _hashCode;
289
    }
312
    }
290
 
313
 
291
    // Type metadata
314
    // Type metadata
Line 341... Line 364...
341
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Source"));
364
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Source"));
342
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
365
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
343
        elemField.setMinOccurs(0);
366
        elemField.setMinOccurs(0);
344
        elemField.setNillable(false);
367
        elemField.setNillable(false);
345
        typeDesc.addFieldDesc(elemField);
368
        typeDesc.addFieldDesc(elemField);
-
 
369
        elemField = new org.apache.axis.description.ElementDesc();
-
 
370
        elemField.setFieldName("preferredLanguageCode");
-
 
371
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "PreferredLanguageCode"));
-
 
372
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
-
 
373
        elemField.setMinOccurs(0);
-
 
374
        elemField.setNillable(true);
-
 
375
        typeDesc.addFieldDesc(elemField);
346
    }
376
    }
347
 
377
 
348
    /**
378
    /**
349
     * Return type metadata object
379
     * Return type metadata object
350
     */
380
     */