[#1] Optimize imports
Signed-off-by: Ivan Pchelintsev <i.pchelintsev@yadro.com>
This commit is contained in:
parent
11eff4e23e
commit
0d83541d82
20 changed files with 61 additions and 40 deletions
|
@ -1,17 +1,19 @@
|
|||
using Version = FrostFS.Refs.Version;
|
||||
|
||||
namespace FrostFS.SDK.ClientV2.Mappers.GRPC;
|
||||
|
||||
public static class VersionMapper
|
||||
{
|
||||
public static Refs.Version ToGrpcMessage(this ModelsV2.Version version)
|
||||
public static Version ToGrpcMessage(this ModelsV2.Version version)
|
||||
{
|
||||
return new Refs.Version
|
||||
return new Version
|
||||
{
|
||||
Major = (uint)version.Major,
|
||||
Minor = (uint)version.Minor
|
||||
};
|
||||
}
|
||||
|
||||
public static ModelsV2.Version ToModel(this Refs.Version version)
|
||||
public static ModelsV2.Version ToModel(this Version version)
|
||||
{
|
||||
return new ModelsV2.Version((int)version.Major, (int)version.Minor);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue