aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/vespa/documentapi/messagebus/messages/feedanswer.cpp
blob: 9b519b0370e86e7067d67718b35799d175fccd13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "feedanswer.h"

namespace documentapi {

FeedAnswer::FeedAnswer() :
    _answerCode(0),
    _wantedIncrement(0),
    _recipient(""),
    _moreInfo("")
{
    // empty
}

FeedAnswer::FeedAnswer(int answerCode,
		       int wantedIncrement,
		       const string& recipient,
		       const string& moreInfo) :
     _answerCode(answerCode),
     _wantedIncrement(wantedIncrement),
     _recipient(recipient),
     _moreInfo(moreInfo)
{
    // empty
}

FeedAnswer::~FeedAnswer()
{
    // empty
}

int
FeedAnswer::getAnswerCode() const
{
    return _answerCode;
}

int
FeedAnswer::getWantedIncrement() const
{
    return _wantedIncrement;
}

const string&
FeedAnswer::getRecipient() const
{
    return _recipient;
}

const string&
FeedAnswer::getMoreInfo() const
{
    return _moreInfo;
}

}