summaryrefslogtreecommitdiff
path: root/src/KingSystem/Utils/Thread/MessageAck.cpp
blob: 97450de1af646c6942c2ec53f5225dce5089c659 (plain)
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
#include "KingSystem/Utils/Thread/MessageAck.h"

namespace ksys {

MessageAck::MessageAck(bool dest_valid, bool success, const MesTransceiverId& destination,
                       const MessageType& type, void* user_data)
    : mDestValid(dest_valid), mSuccess(success), mDestination(destination), mType(type),
      mUserData(user_data) {}

MessageAck::~MessageAck() = default;

bool MessageAck::isDestinationValid() const {
    return mDestValid;
}

bool MessageAck::isSuccess() const {
    return mSuccess;
}

const MesTransceiverId& MessageAck::getDestination() const {
    return mDestination;
}

const MessageType& MessageAck::getType() const {
    return mType;
}

void* MessageAck::getUserData() const {
    return mUserData;
}

}  // namespace ksys