package se.arbetsformedlingen.venice.probe;

import java.util.Objects;

public class ProbeResponse {
    private Host host;
    private Application application;
    private Version version;
    private Status status;


    ProbeResponse(Application application, Host host, Status status, Version version) {
        this.application = application;
        this.host = host;
        this.status = status;
        this.version = version;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ProbeResponse that = (ProbeResponse) o;
        return Objects.equals(host, that.host) &&
                Objects.equals(application, that.application) &&
                Objects.equals(version, that.version) &&
                Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(host, application, version, status);
    }
}

@@ -211,17 +211,16 @@
 tatus;%0A%0A
-%0A
     Prob
@@ -426,32 +426,151 @@
 version;%0A    %7D%0A%0A
+    Host getHost() %7B%0A        return host;%0A    %7D%0A%0A    Application getApplication() %7B%0A        return application;%0A    %7D%0A%0A
     @Override%0A  
@@ -1026,24 +1026,24 @@
 ashCode() %7B%0A
-
         retu
@@ -1100,11 +1100,280 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        return %22ProbeResponse%7B%22 +%0A                %22host=%22 + host +%0A                %22, application=%22 + application +%0A                %22, version=%22 + version +%0A                %22, status=%22 + status +%0A                '%7D';%0A    %7D
 %0A%7D%0A

Allow users to read the host and application