libepp_nicbr
AsnTransferRsp.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: AsnTransferRsp.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __ASNTRANSFERRSP_H__
8 #define __ASNTRANSFERRSP_H__
9 
10 #include "libepp_nicbr.H"
11 
12 #include "Response.H"
13 
14 LIBEPP_NICBR_NS_BEGIN
15 
17 class AsnTransferRsp : public Response
18 {
19 public:
21  AsnTransferRsp(bool reset = true) : Response(false)
22  {
23  if (reset) {
24  this->reset();
25  }
26  }
27 
29 
32  void set_asn(const int asn)
33  {
34  _asn = asn;
35  }
36 
38 
41  int get_asn() const
42  {
43  return _asn;
44  }
45 
47 
50  void set_trStatus(const string &trStatus)
51  {
52  _trStatus = trStatus;
53  }
54 
56 
59  string get_trStatus() const
60  {
61  return _trStatus;
62  }
63 
65 
68  void set_reId(const string &reId)
69  {
70  _reId = reId;
71  }
72 
74 
77  string get_reId() const
78  {
79  return _reId;
80  }
81 
83 
86  void set_reDate(const string &reDate)
87  {
88  _reDate = reDate;
89  }
90 
92 
95  string get_reDate() const
96  {
97  return _reDate;
98  }
99 
101 
105  void set_acId(const string &acId)
106  {
107  _acId = acId;
108  }
109 
111 
114  string get_acId() const
115  {
116  return _acId;
117  }
118 
120 
123  void set_acDate(const string &acDate)
124  {
125  _acDate = acDate;
126  }
127 
129 
132  string get_acDate() const
133  {
134  return _acDate;
135  }
136 
137  void reset()
138  {
139  Response::reset();
140  _asn = 0;
141  _trStatus = "";
142  _reId = "";
143  _reDate = "";
144  _acId = "";
145  _acDate = "";
146  }
147 
148 protected:
150  int _asn;
151 
153  string _trStatus;
154 
156  string _reId;
157 
159  string _reDate;
160 
162  string _acId;
163 
165  string _acDate;
166 };
167 
168 LIBEPP_NICBR_NS_END
169 #endif // __ASNTRANSFERRSP_H__
void set_asn(const int asn)
Sets asn.
Definition: AsnTransferRsp.H:32
EPP Response Class.
Definition: Response.H:24
Project defines.
string _reDate
date and time that the transfer was requested
Definition: AsnTransferRsp.H:159
string get_acDate() const
Returns acknowledge date.
Definition: AsnTransferRsp.H:132
EPP Response Class.
string get_reDate() const
Returns request client date.
Definition: AsnTransferRsp.H:95
EPP AsnTransferRsp.
Definition: AsnTransferRsp.H:17
void set_acDate(const string &acDate)
Sets acknowledge date.
Definition: AsnTransferRsp.H:123
string _reId
identifier of the client that requested the object transfer
Definition: AsnTransferRsp.H:156
void set_acId(const string &acId)
Sets acknowledge client Id.
Definition: AsnTransferRsp.H:105
void set_trStatus(const string &trStatus)
Sets transfer status.
Definition: AsnTransferRsp.H:50
void set_reId(const string &reId)
Sets request client Id.
Definition: AsnTransferRsp.H:68
int _asn
autonomous system number
Definition: AsnTransferRsp.H:150
string _trStatus
state of the most recent transfer request
Definition: AsnTransferRsp.H:153
string get_reId() const
Returns request client Id.
Definition: AsnTransferRsp.H:77
int get_asn() const
Returns asn.
Definition: AsnTransferRsp.H:41
string _acId
identifier of the client that SHOULD act upon the transfer request
Definition: AsnTransferRsp.H:162
string get_trStatus() const
Returns transfer status.
Definition: AsnTransferRsp.H:59
AsnTransferRsp(bool reset=true)
Default constructor.
Definition: AsnTransferRsp.H:21
string get_acId() const
Returns acknowledge client Id.
Definition: AsnTransferRsp.H:114
void reset()
reset attributes
Definition: Response.H:161
void set_reDate(const string &reDate)
Sets request client date.
Definition: AsnTransferRsp.H:86
string _acDate
date and time of a required or completed response
Definition: AsnTransferRsp.H:165