summaryrefslogtreecommitdiffstats
path: root/src/main/java/derms/client/ResponderClient.java
blob: 4db30c8d26a233ddcad4f309c8619d1b9f224a71 (plain) (blame)
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
package derms.client;

import derms.frontend.DERMSInterface;
import derms.util.TestLogger;

import java.net.MalformedURLException;
import java.util.Objects;

public class ResponderClient {
    private final DERMSInterface server;

    public ResponderClient(String FEhost) throws MalformedURLException {
        server = Client.connectToServer(FEhost);
    }

    public String addResource(String resourceID, String resourceName, int duration) {
        return server.addResource(resourceID, resourceName, duration);
    }

    public String removeResource(String resourceID, int duration) {
        return server.removeResource(resourceID, duration);
    }

    public String listResourceAvailability(String resourceName) {
        return server.listResourceAvailability(resourceName);
    }
}