-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMsisdn.java
50 lines (45 loc) · 1.36 KB
/
Msisdn.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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package i2i.benimle;
import i2i_benimle.Dbi2IBenimle;
/**
*
* @author 7210
*/
public class Msisdn {
private String msisdn,password;
private int contractID;
MyBalance balance;
WsConnection wsPort = new WsConnection();
public Msisdn(String msisdn,String password){
setContractID(msisdn,password);
setMsisdn(msisdn);
setPassword(password);
I2iBenimle.logger.info("\nGiriş başarılı Contract ID:"+contractID);
if(-1 != getContractID()){
I2iBenimle.logger.info("\nBalance nesnesi oluşturuluyor");
balance = new MyBalance();
}
}
public String getMsisdn(){
return msisdn;
}
private void setMsisdn(String value){
this.msisdn = value;
}
public String getPassword(){
return password;
}
private void setPassword(String value){
this.password = value;
}
public int getContractID(){
return contractID;
}
private void setContractID(String msisdn,String password) {
this.contractID = wsPort.service.getDbi2IBenimlePort().getContractId(msisdn, password);
}
}