org.hisp.dhis.response.object.ObjectResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dhis2-java-client Show documentation
Show all versions of dhis2-java-client Show documentation
DHIS 2 API client for Java.
package org.hisp.dhis.response.object;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hisp.dhis.response.Response;
import org.hisp.dhis.response.Status;
import com.fasterxml.jackson.annotation.JsonProperty;
@Getter
@Setter
@NoArgsConstructor
public class ObjectResponse
extends Response
{
@JsonProperty
protected ObjectReport response;
public ObjectResponse( Status status, Integer httpStatusCode, String message )
{
super( status, httpStatusCode, message );
}
@Override
public String toString()
{
return new StringBuilder( "[" )
.append( "status: " ).append( status ).append( ", " )
.append( "code: " ).append( code ).append( ", " )
.append( "httpStatusCode: " ).append( httpStatusCode ).append( ", " )
.append( "devMessage: " ).append( devMessage ).append( ", " )
.append( "response:" ).append( response ).append( "]" ).toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy