[#17] Models: Remove internal visibility
All checks were successful
DCO / DCO (pull_request) Successful in 3m34s

Signed-off-by: Pavel Gross <p.gross@yando.com>
This commit is contained in:
p.gross 2024-07-22 14:18:42 +03:00 committed by Pavel Gross
parent 7b9c19f37c
commit 816e1eb2f1
4 changed files with 6 additions and 22 deletions

View file

@ -18,9 +18,4 @@
<ProjectReference Include="..\FrostFS.SDK.Cryptography\FrostFS.SDK.Cryptography.csproj" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>FrostFS.SDK.ClientV2</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>

View file

@ -36,7 +36,7 @@ public class FrostFsObject
/// </summary>
public ObjectId? ObjectId
{
get; internal set;
get; set;
}
/// <summary>

View file

@ -1,11 +1,6 @@
namespace FrostFS.SDK.ModelsV2;
public class SessionToken
public class SessionToken(byte[] token)
{
internal SessionToken(byte[] token)
{
Token = token;
}
public byte[] Token { get; private set; }
public byte[] Token { get; private set; } = token;
}

View file

@ -1,15 +1,9 @@
namespace FrostFS.SDK.ModelsV2;
public class Version
public class Version(int major, int minor)
{
public int Major { get; set; }
public int Minor { get; set; }
public Version(int major, int minor)
{
Major = major;
Minor = minor;
}
public int Major { get; set; } = major;
public int Minor { get; set; } = minor;
public bool IsSupported(Version version)
{