001package co.codewizards.cloudstore.core.dto;
002
003import java.io.File;
004import java.util.Date;
005
006import javax.xml.bind.annotation.XmlRootElement;
007
008/**
009 * @author Marco หงุ่ยตระกูล-Schulze - marco at codewizards dot co
010 */
011@XmlRootElement
012public class RepoFileDTO {
013        private long id;
014
015        private Long parentId;
016
017        private String name;
018
019        private long localRevision;
020
021        private Date lastModified;
022
023        public long getId() {
024                return id;
025        }
026        public void setId(long id) {
027                this.id = id;
028        }
029
030        public Long getParentId() {
031                return parentId;
032        }
033        public void setParentId(Long parentId) {
034                this.parentId = parentId;
035        }
036
037        public String getName() {
038                return name;
039        }
040        public void setName(String name) {
041                this.name = name;
042        }
043
044        public long getLocalRevision() {
045                return localRevision;
046        }
047        public void setLocalRevision(long localRevision) {
048                this.localRevision = localRevision;
049        }
050        /**
051         * Gets the timestamp of the file's last modification.
052         * <p>
053         * It reflects the {@link File#lastModified() File.lastModified} property.
054         * @return the timestamp of the file's last modification.
055         */
056        public Date getLastModified() {
057                return lastModified;
058        }
059        public void setLastModified(Date lastModified) {
060                this.lastModified = lastModified;
061        }
062}