[#1] Move files to top level directory
Signed-off-by: Ivan Pchelintsev <i.pchelintsev@yadro.com>
This commit is contained in:
parent
013d8a8436
commit
11eff4e23e
76 changed files with 0 additions and 0 deletions
|
@ -1,18 +0,0 @@
|
|||
using FrostFS.SDK.ModelsV2;
|
||||
using FrostFS.SDK.ModelsV2.Enums;
|
||||
|
||||
namespace FrostFS.SDK.ClientV2.Mappers.GRPC;
|
||||
|
||||
public static class ObjectHeadMapper
|
||||
{
|
||||
public static ObjectHead ToModel(this Object.Header head)
|
||||
{
|
||||
// var obtype = Enum.Parse<ObjectType>(head.ObjectType.ToString());
|
||||
return new ObjectHead
|
||||
{
|
||||
ContainerId = ContainerId.FromHash(head.ContainerId.Value.ToByteArray()),
|
||||
Size = (long)head.PayloadLength,
|
||||
Version = head.Version.ToModel()
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue