-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomer.java
52 lines (48 loc) · 1.47 KB
/
Customer.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
package i2i.benimle;
import i2i_benimle.Dbi2IBenimle;
/**
*
* @author Furkan KAYALI
*/
public class Customer {
private String firstName
,lastName
,birtOfDate;
private int ID;
WsConnection wsPort = new WsConnection();
public MyBalance balance;
public Customer(int ID){
I2iBenimle.logger.info("\nCustomer verileri çekiliyor...");
this.setFirstName(wsPort.service.getDbi2IBenimlePort().getCustomerCredential(ID).getFirstName());
this.setLastName(wsPort.service.getDbi2IBenimlePort().getCustomerCredential(ID).getLastName());
this.setID(wsPort.service.getDbi2IBenimlePort().getCustomerCredential(ID).getId());
I2iBenimle.logger.info("\nCustomer: \nfirst name: "+ firstName+"\nlast name: "+lastName+"\nID: "+ID);
}
public String getFirstName(){
return firstName;
}
private void setFirstName(String value){
this.firstName = value;
}
public String getLastName(){
return lastName;
}
private void setLastName(String value){
this.lastName = value;
}
public String getBirtOfDate(){
return birtOfDate;
}
private void setBirtOfDate(String value){
this.birtOfDate = value;
}
public int getID(){
return ID;
}
private void setID(int value){
this.ID = value;
}
public String getFullName(){
return firstName+" "+lastName;
}
}