59 lines
1.3 KiB
C#
59 lines
1.3 KiB
C#
using Google.Protobuf;
|
|
|
|
namespace FrostFS.Session;
|
|
|
|
public partial class CreateResponse : IResponse
|
|
{
|
|
IMetaHeader IVerificableMessage.GetMetaHeader()
|
|
{
|
|
return MetaHeader;
|
|
}
|
|
|
|
IVerificationHeader IVerificableMessage.GetVerificationHeader()
|
|
{
|
|
return VerifyHeader;
|
|
}
|
|
|
|
void IVerificableMessage.SetMetaHeader(IMetaHeader metaHeader)
|
|
{
|
|
MetaHeader = (ResponseMetaHeader)metaHeader;
|
|
}
|
|
|
|
void IVerificableMessage.SetVerificationHeader(IVerificationHeader verificationHeader)
|
|
{
|
|
VerifyHeader = (ResponseVerificationHeader)verificationHeader;
|
|
}
|
|
|
|
public IMessage GetBody()
|
|
{
|
|
return Body;
|
|
}
|
|
}
|
|
|
|
public partial class CreateRequest : IRequest
|
|
{
|
|
IMetaHeader IVerificableMessage.GetMetaHeader()
|
|
{
|
|
return MetaHeader;
|
|
}
|
|
|
|
IVerificationHeader IVerificableMessage.GetVerificationHeader()
|
|
{
|
|
return VerifyHeader;
|
|
}
|
|
|
|
void IVerificableMessage.SetMetaHeader(IMetaHeader metaHeader)
|
|
{
|
|
MetaHeader = (RequestMetaHeader)metaHeader;
|
|
}
|
|
|
|
void IVerificableMessage.SetVerificationHeader(IVerificationHeader verificationHeader)
|
|
{
|
|
VerifyHeader = (RequestVerificationHeader)verificationHeader;
|
|
}
|
|
|
|
public IMessage GetBody()
|
|
{
|
|
return Body;
|
|
}
|
|
}
|