[#274] reputation: Adapt converters and encoding methods on messages

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-04-22 10:40:12 +03:00 committed by Alex Vanin
parent 1076478b29
commit 541a56aae1
4 changed files with 38 additions and 1 deletions

View file

@ -297,11 +297,29 @@ func (x *SendLocalTrustResponse) SetBody(v *SendLocalTrustResponseBody) {
// SendIntermediateResultRequestBody is a structure of SendIntermediateResult request body.
type SendIntermediateResultRequestBody struct {
epoch uint64
iter uint32
trust *PeerToPeerTrust
}
// GetEpoch returns epoch number in which the intermediate trust was assessed.
func (x *SendIntermediateResultRequestBody) GetEpoch() uint64 {
if x != nil {
return x.epoch
}
return 0
}
// SetEpoch sets epoch number in which the intermediate trust was assessed.
func (x *SendIntermediateResultRequestBody) SetEpoch(v uint64) {
if x != nil {
x.epoch = v
}
}
// GetIteration returns sequence number of the iteration.
func (x *SendIntermediateResultRequestBody) GetIteration() uint32 {
if x != nil {