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

dw.xmlrpc.AttachmentInfo Maven / Gradle / Ivy

package dw.xmlrpc;

import java.util.Date;

/**
 * Describes a file uploaded in the wiki as getAttachmentInfo would
 */
public class AttachmentInfo {
	private final String _id;

	/**
	 * Media id (namespace + name)
	 */
	public String id(){
		return _id;
	}

	private final Integer _size;

	/**
	 * Size in bytes
	 */
	public Integer size(){
		return _size;
	}

	private final Date _lastModified;

	/**
	 * Date of last modification of the file
	 */
	public Date  lastModified(){
		return _lastModified;
	}

	public AttachmentInfo(String id, Integer size, Date lastModified){
		_id = id;
		_size = size;
		_lastModified = lastModified;
	}

	@Override
	public String toString(){
		return "id: " + _id
				+ ", size:" + _size
				+ ", lastModified:" + (_lastModified == null ? "null" : _lastModified.toString());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy