CatapultServer  v0.5.0.1 (Elephant)
TransactionStatus.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "catapult/types.h"
23 
24 namespace catapult { namespace model {
25 
26 #pragma pack(push, 1)
27 
30  public:
32  explicit TransactionStatus(const Hash256& hash, uint32_t status, catapult::Timestamp deadline)
33  : Hash(hash)
34  , Status(status)
35  , Deadline(deadline)
36  {}
37 
38  public:
41 
43  uint32_t Status;
44 
47 
48  public:
50  bool operator==(const TransactionStatus& rhs) const {
51  return Hash == rhs.Hash;
52  }
53 
55  bool operator!=(const TransactionStatus& rhs) const {
56  return !(*this == rhs);
57  }
58  };
59 
60 #pragma pack(pop)
61 }}
catapult::model::TransactionStatus
A transaction status.
Definition: TransactionStatus.h:29
catapult::utils::BaseValue< uint64_t, Timestamp_tag >
catapult::model::TransactionStatus::operator!=
bool operator!=(const TransactionStatus &rhs) const
Returns true if this transaction status is not equal to rhs.
Definition: TransactionStatus.h:55
catapult::model::TransactionStatus::Deadline
catapult::Timestamp Deadline
Deadline.
Definition: TransactionStatus.h:46
catapult::model::TransactionStatus::operator==
bool operator==(const TransactionStatus &rhs) const
Returns true if this transaction status is equal to rhs.
Definition: TransactionStatus.h:50
catapult::model::TransactionStatus::Hash
Hash256 Hash
Transaction hash.
Definition: TransactionStatus.h:40
types.h
catapult::model::TransactionStatus::Status
uint32_t Status
Raw status code.
Definition: TransactionStatus.h:43
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::model::TransactionStatus::TransactionStatus
TransactionStatus(const Hash256 &hash, uint32_t status, catapult::Timestamp deadline)
Creates a TransactionStatus around hash, status and deadline.
Definition: TransactionStatus.h:32
catapult::utils::ByteArray< Hash256_Size, Hash256_tag >