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

nl.vpro.domain.media.update.UploadResponse Maven / Gradle / Ivy

Go to download

The basic domain classes for 'media', the core of POMS. Also, the 'update' XML bindings for it. It also contains some closely related domain classes like the enum to contain NICAM kijkwijzer settings.

There is a newer version: 8.3.1
Show newest version
package nl.vpro.domain.media.update;


import lombok.Getter;
import lombok.ToString;

import jakarta.xml.bind.annotation.*;

@Getter
@XmlRootElement(name = "uploadResponse")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "uploadResponseType")
@ToString
public class UploadResponse {

    @XmlAttribute
    int statusCode;

    @XmlAttribute
    String mid;

    String status;

    String response;

    Long bytes;

    String version;

    public UploadResponse(String mid, int statusCode, String status, String response, Long bytes, String version) {
        this.statusCode = statusCode;
        this.status = status;
        this.response = response;
        this.mid = mid;
        this.bytes = bytes;
        this.version = version;
    }
    private UploadResponse() {

    }

    public boolean isSuccessFull() {
        return statusCode >= 200 && statusCode < 300;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy