[#1] Add presentation layer
Signed-off-by: Ivan Pchelintsev <i.pchelintsev@yadro.com>
This commit is contained in:
parent
2800fff041
commit
bb6e187b61
22 changed files with 778 additions and 79 deletions
18
sdk/src/FrostFS.SDK.ClientV2/Mappers/GRPC/Version.cs
Normal file
18
sdk/src/FrostFS.SDK.ClientV2/Mappers/GRPC/Version.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
namespace FrostFS.SDK.ClientV2.Mappers.GRPC;
|
||||
|
||||
public static class VersionMapper
|
||||
{
|
||||
public static Refs.Version ToGrpcMessage(this ModelsV2.Version version)
|
||||
{
|
||||
return new Refs.Version
|
||||
{
|
||||
Major = (uint)version.Major,
|
||||
Minor = (uint)version.Minor
|
||||
};
|
||||
}
|
||||
|
||||
public static ModelsV2.Version ToModel(this Refs.Version version)
|
||||
{
|
||||
return new ModelsV2.Version((int)version.Major, (int)version.Minor);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue