libepp_nicbr
ContactCreateRsp.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: ContactCreateRsp.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __CONTACT_CREATE_RSP_H__
8 #define __CONTACT_CREATE_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 ContactCreateRsp : public Response
22 {
23 public:
25  ContactCreateRsp(bool reset = true) : Response(false)
26  {
27  if (reset) {
28  this->reset();
29  }
30  }
31 
33 
36  void set_id(const string &id) { _id = id; }
37 
39 
42  void set_crDate(const string &crDate) { _crDate = crDate; }
43 
45 
48  string get_id() const { return _id; }
49 
51 
54  string get_crDate() const { return _crDate; }
55 
57  void reset()
58  {
60  _id = "";
61  _crDate = "";
62  }
63 
64 protected:
66  string _id;
67 
69  string _crDate;
70 
71 };
72 
73 LIBEPP_NICBR_NS_END
74 #endif //__CONTACT_CREATE_RSP_H__
void set_crDate(const string &crDate)
Sets the contact's creation date.
Definition: ContactCreateRsp.H:42
EPP ContactCreateRsp Class.
Definition: ContactCreateRsp.H:21
EPP Response Class.
Definition: Response.H:24
Project defines.
EPP Response Class.
string get_id() const
Returns the contact's id.
Definition: ContactCreateRsp.H:48
string _id
Contact id.
Definition: ContactCreateRsp.H:66
string _crDate
Date and Time of contact creation.
Definition: ContactCreateRsp.H:69
ContactCreateRsp(bool reset=true)
Default constructor.
Definition: ContactCreateRsp.H:25
void reset()
Resets object attributes.
Definition: ContactCreateRsp.H:57
string get_crDate() const
Returns the contact's creation date.
Definition: ContactCreateRsp.H:54
void reset()
reset attributes
Definition: Response.H:161
void set_id(const string &id)
Sets the contact's id.
Definition: ContactCreateRsp.H:36