TODO: Вынести маппинг модель -> grpc в отдельный слой Signed-off-by: Ivan Pchelintsev <i.pchelintsev@yadro.com>
27 lines
No EOL
537 B
C#
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
|
|
);
|
|
}
|
|
} |