Welcome to mirror list, hosted at ThFree Co, Russian Federation.

RemoteVolumeEntry.cs « Database « Main « Library « Duplicati - github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a8c6b1621e8c30b09a5779403b9e9716ed4c517e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Duplicati.Library.Main.Database
{
    public struct RemoteVolumeEntry : IRemoteVolume
    {
    	private readonly string m_name;
    	private readonly string m_hash;
    	private readonly long m_size;
    	private readonly RemoteVolumeType m_type;
    	private readonly RemoteVolumeState m_state;
        private readonly DateTime m_deleteGracePeriod;
    	
        public string Name { get { return m_name; } }
        public string Hash { get { return m_hash; } }
        public long Size { get { return m_size; } }
        public RemoteVolumeType Type { get { return m_type; } }
        public RemoteVolumeState State { get { return m_state; } }
        public DateTime deleteGracePeriod { get { return m_deleteGracePeriod; } }

        public RemoteVolumeEntry(string name, string hash, long size, RemoteVolumeType type, RemoteVolumeState state, DateTime deleteGracePeriod)
        {
            m_name = name;
            m_size = size;
            m_type = type;
            m_state = state;
            m_hash = hash;
            m_deleteGracePeriod = deleteGracePeriod;
        }
    }
}