All checks were successful
DCO / DCO (pull_request) Successful in 46s
first iteration - base classes and methods Signed-off-by: Pavel Gross <p.gross@yadro.com>
62 lines
No EOL
1.3 KiB
C#
62 lines
No EOL
1.3 KiB
C#
using FrostFS.SDK.ProtosV2.Interfaces;
|
|
using FrostFS.Session;
|
|
|
|
using Google.Protobuf;
|
|
|
|
namespace FrostFS.Accounting;
|
|
|
|
public partial class BalanceRequest : IRequest
|
|
{
|
|
IMetaHeader IVerifiableMessage.GetMetaHeader()
|
|
{
|
|
return MetaHeader;
|
|
}
|
|
|
|
IVerificationHeader IVerifiableMessage.GetVerificationHeader()
|
|
{
|
|
return VerifyHeader;
|
|
}
|
|
|
|
void IVerifiableMessage.SetMetaHeader(IMetaHeader metaHeader)
|
|
{
|
|
MetaHeader = (RequestMetaHeader)metaHeader;
|
|
}
|
|
|
|
void IVerifiableMessage.SetVerificationHeader(IVerificationHeader verificationHeader)
|
|
{
|
|
VerifyHeader = (RequestVerificationHeader)verificationHeader;
|
|
}
|
|
|
|
public IMessage GetBody()
|
|
{
|
|
return Body;
|
|
}
|
|
}
|
|
|
|
public partial class BalanceResponse : IResponse
|
|
{
|
|
IMetaHeader IVerifiableMessage.GetMetaHeader()
|
|
{
|
|
return MetaHeader;
|
|
}
|
|
|
|
IVerificationHeader IVerifiableMessage.GetVerificationHeader()
|
|
{
|
|
return VerifyHeader;
|
|
}
|
|
|
|
void IVerifiableMessage.SetMetaHeader(IMetaHeader metaHeader)
|
|
{
|
|
MetaHeader = (ResponseMetaHeader)metaHeader;
|
|
}
|
|
|
|
void IVerifiableMessage.SetVerificationHeader(IVerificationHeader verificationHeader)
|
|
{
|
|
VerifyHeader = (ResponseVerificationHeader)verificationHeader;
|
|
}
|
|
|
|
public IMessage GetBody()
|
|
{
|
|
return Body;
|
|
}
|
|
} |