Skip to content

Commit e09d94d

Browse files
committed
Modifying Application to contain Endpoint and AppManager.
1 parent 11f17b3 commit e09d94d

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

src/main/java/fr/rabian/ovhApi/beans/Application.java

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,28 @@ public class Application {
1919
* Application secret (AS)
2020
*/
2121
private final String secKey;
22+
/**
23+
* Endpoint in which the application is declared
24+
*/
25+
private final Endpoint ep;
26+
/**
27+
* Manager for this application
28+
*/
29+
private final AppManager am;
2230

2331
/**
2432
* Creates an application.
2533
*
2634
* @param name Application's name
2735
* @param pubKey Application key (AK)
2836
* @param secKey Application secret (AS)
37+
* @param endpoint Application's endpoint
2938
*/
30-
public Application(String name, String pubKey, String secKey) {
39+
public Application(String name, String pubKey, String secKey, Endpoint endpoint) {
3140
this.name = name;
3241
this.pubKey = pubKey;
3342
this.secKey = secKey;
43+
this.ep = endpoint;
3444
}
3545

3646
/**
@@ -59,4 +69,22 @@ public String getPubKey() {
5969
public String getSecKey() {
6070
return secKey;
6171
}
72+
73+
/**
74+
* Returns the app's endpoint.
75+
*
76+
* @return Endpoint in which the application is declared
77+
*/
78+
public Endpoint getEp() {
79+
return ep;
80+
}
81+
82+
/**
83+
* Returns the app's AppManager.
84+
*
85+
* @return Manager for this application
86+
*/
87+
public AppManager getAm() {
88+
return am;
89+
}
6290
}

0 commit comments

Comments
 (0)