All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hisp.dhis.response.object.ObjectResponse Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
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