
com.podio.file.File Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
The official Java wrapper for the Podio API
package com.podio.file;
import java.util.List;
import javax.activation.MimeType;
import org.codehaus.jackson.annotate.JsonProperty;
import org.joda.time.DateTime;
import com.podio.common.AuthorizationEntity;
import com.podio.common.AuthorizationInterface;
public class File {
/**
* The id of the file
*/
private int id;
/**
* The name of the file
*/
private String name;
/**
* The description of the file
*/
private String description;
/**
* The type of the file, see the area for allowed types
*/
private MimeType mimetype;
/**
* The reference to where the file was added, either comment, task, item or
* status,
*/
private FileReference data;
/**
* The context of the file, either an item, task or status
*/
private FileReference context;
/**
* The size of the file in bytes
*/
private long size;
/**
* The date and time when the file was uploaded
*/
private DateTime createdOn;
/**
* The entity who created the file
*/
private AuthorizationEntity createdBy;
/**
* The interface through which the file was created
*/
private AuthorizationInterface createdVia;
/**
* The file this file replaces, if any
*/
private List replaces;
@JsonProperty("file_id")
public int getId() {
return id;
}
@JsonProperty("file_id")
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public MimeType getMimetype() {
return mimetype;
}
public void setMimetype(MimeType mimetype) {
this.mimetype = mimetype;
}
public FileReference getData() {
return data;
}
public void setData(FileReference data) {
this.data = data;
}
public FileReference getContext() {
return context;
}
public void setContext(FileReference context) {
this.context = context;
}
public long getSize() {
return size;
}
public void setSize(long size) {
this.size = size;
}
@JsonProperty("created_on")
public DateTime getCreatedOn() {
return createdOn;
}
@JsonProperty("created_on")
public void setCreatedOn(DateTime createdOn) {
this.createdOn = createdOn;
}
public AuthorizationEntity getCreatedBy() {
return createdBy;
}
@JsonProperty("created_by")
public void setCreatedBy(AuthorizationEntity createdBy) {
this.createdBy = createdBy;
}
public AuthorizationInterface getCreatedVia() {
return createdVia;
}
@JsonProperty("created_via")
public void setCreatedVia(AuthorizationInterface createdVia) {
this.createdVia = createdVia;
}
public List getReplaces() {
return replaces;
}
public void setReplaces(List replaces) {
this.replaces = replaces;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy