package com.jscape.inet.scp.protocol.messages;

/**
 * File time message.
 *
 * @author Alex Usun
 */
public class TimeMessage
        extends Message {

    public final long modificationDate;
    public final long accessTime;

    /**
     * Creates a new time message.
     *
     * @param modificationDate file modification time in milliseconds
     * @param accessTime       file access time in milliseconds
     */
    public TimeMessage(long modificationDate, long accessTime) {
        this.modificationDate = modificationDate;
        this.accessTime = accessTime;
    }

    @Override
    public String toString() {
        return "TimeMessage {"
                + "modificationDate=" + this.modificationDate
                + ", accessTime=" + this.accessTime
                + '}';
    }

}
