diff options
author | Keuin <[email protected]> | 2020-04-23 20:13:35 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2020-04-23 20:13:35 +0800 |
commit | ba19ab350516e26a8e52cc217878bde63c0b7eee (patch) | |
tree | 482a4ad4b4b8c4d630833f93863195f56ef34244 /src/main/java/com/keuin/kbackupfabric/data | |
parent | ffd446e4decbe487b8e56b6726be0ecc81f8428d (diff) |
Refactored code.
Added startup message on the first start after restoring a backup.
Adjusted text color.
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/data')
-rw-r--r-- | src/main/java/com/keuin/kbackupfabric/data/BackupMetadata.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/data/BackupMetadata.java b/src/main/java/com/keuin/kbackupfabric/data/BackupMetadata.java new file mode 100644 index 0000000..48670c6 --- /dev/null +++ b/src/main/java/com/keuin/kbackupfabric/data/BackupMetadata.java @@ -0,0 +1,23 @@ +package com.keuin.kbackupfabric.data; + +import java.io.Serializable; + +public class BackupMetadata implements Serializable { + public static final String metadataFileName = "kbackup_metadata"; + private static final long serialVersionUID = 1L; + private final long BackupTime; + private final String backupName; + + public BackupMetadata(long backupTime, String backupName) { + BackupTime = backupTime; + this.backupName = backupName; + } + + public long getBackupTime() { + return BackupTime; + } + + public String getBackupName() { + return backupName; + } +} |