frostfs-sdk-csharp/sdk/src/FrostFS.SDK.ModelsV2/MetaHeader.cs
Ivan Pchelintsev 2800fff041 [#1] Define SDK structure
TODO: Вынести маппинг модель -> grpc в отдельный слой

Signed-off-by: Ivan Pchelintsev <i.pchelintsev@yadro.com>
2024-05-22 14:29:17 +03:00

27 lines
No EOL
537 B
C#

namespace FrostFS.SDK.ModelsV2;
public class MetaHeader
{
public Version Version { get; set; }
public int Epoch { get; set; }
public int Ttl { get; set; }
public MetaHeader(Version version, int epoch, int ttl)
{
Version = version;
Epoch = epoch;
Ttl = ttl;
}
public static MetaHeader Default()
{
return new MetaHeader(
new Version(
major: 2,
minor: 13
),
epoch: 0,
ttl: 2
);
}
}