ledger-core
RippleLikeNetworkParameters.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from addresses.djinni
3 
4 #ifndef DJINNI_GENERATED_RIPPLELIKENETWORKPARAMETERS_HPP
5 #define DJINNI_GENERATED_RIPPLELIKENETWORKPARAMETERS_HPP
6 
7 #include <cstdint>
8 #include <iostream>
9 #include <string>
10 #include <utility>
11 #include <vector>
12 
13 namespace ledger { namespace core { namespace api {
14 
16  std::string Identifier;
17  std::string MessagePrefix;
18  std::vector<uint8_t> XPUBVersion;
19  std::vector<std::string> AdditionalRIPs;
20  int64_t TimestampDelay;
21 
22  RippleLikeNetworkParameters(std::string Identifier_,
23  std::string MessagePrefix_,
24  std::vector<uint8_t> XPUBVersion_,
25  std::vector<std::string> AdditionalRIPs_,
26  int64_t TimestampDelay_)
27  : Identifier(std::move(Identifier_))
28  , MessagePrefix(std::move(MessagePrefix_))
29  , XPUBVersion(std::move(XPUBVersion_))
30  , AdditionalRIPs(std::move(AdditionalRIPs_))
31  , TimestampDelay(std::move(TimestampDelay_))
32  {}
33 
35  this->Identifier = cpy.Identifier;
36  this->MessagePrefix = cpy.MessagePrefix;
37  this->XPUBVersion = cpy.XPUBVersion;
38  this->AdditionalRIPs = cpy.AdditionalRIPs;
39  this->TimestampDelay = cpy.TimestampDelay;
40  }
41 
42  RippleLikeNetworkParameters() = default;
43 
44 
46  this->Identifier = cpy.Identifier;
47  this->MessagePrefix = cpy.MessagePrefix;
48  this->XPUBVersion = cpy.XPUBVersion;
49  this->AdditionalRIPs = cpy.AdditionalRIPs;
50  this->TimestampDelay = cpy.TimestampDelay;
51  return *this;
52  }
53 
54  template <class Archive>
55  void load(Archive& archive) {
56  archive(Identifier, MessagePrefix, XPUBVersion, AdditionalRIPs, TimestampDelay);
57  }
58 
59  template <class Archive>
60  void save(Archive& archive) const {
61  archive(Identifier, MessagePrefix, XPUBVersion, AdditionalRIPs, TimestampDelay);
62  }
63 };
64 
65 } } } // namespace ledger::core::api
66 #endif //DJINNI_GENERATED_RIPPLELIKENETWORKPARAMETERS_HPP
Definition: RippleLikeNetworkParameters.hpp:15
Definition: Account.cpp:8