libepp_nicbr
DomainRenewRsp.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: DomainRenewRsp.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __DOMAIN_RENEW_RSP_H__
8 #define __DOMAIN_RENEW_RSP_H__
9 
10 #include <string>
11 
12 #include "libepp_nicbr.H"
13 
14 #include "Response.H"
15 
16 using std::string;
17 
18 LIBEPP_NICBR_NS_BEGIN
19 
21 class DomainRenewRsp : public Response
22 {
23 public:
25  DomainRenewRsp(bool reset = true) : Response(false)
26  {
27  if (reset) {
28  this->reset();
29  }
30  }
31 
33 
36  void set_name(const string& name) { _name = name; }
37 
39 
42  string get_name() const { return _name; }
43 
45 
48  void set_exDate(const string& exDate) { _exDate = exDate; }
49 
51 
54  string get_exDate() const { return _exDate; }
55 
56  void reset()
57  {
59  _name = "";
60  _exDate = "";
61  }
62 
63 protected:
64 
66  string _name;
67 
70  string _exDate;
71 
72 };
73 
74 LIBEPP_NICBR_NS_END
75 #endif //__DOMAIN_RENEW_RSP_H__
void set_name(const string &name)
Sets domain name.
Definition: DomainRenewRsp.H:36
EPP Response Class.
Definition: Response.H:24
Project defines.
void set_exDate(const string &exDate)
Sets expiration date.
Definition: DomainRenewRsp.H:48
DomainRenewRsp(bool reset=true)
Default constructor.
Definition: DomainRenewRsp.H:25
EPP Response Class.
EPP DomainRenewRsp Class.
Definition: DomainRenewRsp.H:21
string _name
fully qualified domain name
Definition: DomainRenewRsp.H:66
string _exDate
Definition: DomainRenewRsp.H:70
string get_exDate() const
Returns expiration date.
Definition: DomainRenewRsp.H:54
void reset()
reset attributes
Definition: Response.H:161
string get_name() const
Returns domain name.
Definition: DomainRenewRsp.H:42