1 /*
2  * Copyright (C) 2006-2021 Registro.br. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met:
7  * 1. Redistribution of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY REGISTRO.BR ``AS IS AND ANY EXPRESS OR
14  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15  * WARRANTIE OF FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
16  * EVENT SHALL REGISTRO.BR BE LIABLE FOR ANY DIRECT, INDIRECT,
17  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
18  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
19  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
21  * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
22  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
23  * DAMAGE.
24  */
25 /* $Id$ */
26 /** @file BrDomainInfoCmd.H
27  *  @brief EPP BrDomainInfoCmd extension Class
28  */
29 
30 #ifndef __BR_DOMAIN_INFO_CMD_H__
31 #define __BR_DOMAIN_INFO_CMD_H__
32 
33 #include "DomainInfoCmd.H"
34 
35 LIBEPP_NICBR_NS_BEGIN
36 
37 /// EPP BrDomainInfoCmd extension Class
38 class BrDomainInfoCmd : public DomainInfoCmd
39 {
40 public:
41 	/// Default constructor
DomainInfoCmd(false)42 	BrDomainInfoCmd(bool reset = true) : DomainInfoCmd(false)
43 	{
44 		if (reset) {
45 			this->reset();
46 		}
47 	}
48 
49 	/// Sets ticket number
50 	/**
51 	   @param ticketNumber   ticket number
52 	*/
set_ticketNumber(int ticketNumber)53 	void set_ticketNumber(int ticketNumber)
54 	{
55 		_ticketNumber = ticketNumber;
56 	}
57 
58 	/// Returns ticket number
59 	/**
60 	   @return ticket number
61 	*/
get_ticketNumber()62 	int get_ticketNumber() const
63 	{
64 		return _ticketNumber;
65 	}
66 
67 	/// Reset object attributes
reset()68 	void reset()
69 	{
70 		DomainInfoCmd::reset();
71 		_ticketNumber = 0;
72 	}
73 
74 protected:
75 	/// ticket number
76 	int _ticketNumber;
77 };
78 
79 LIBEPP_NICBR_NS_END
80 #endif //__BR_DOMAIN_INFO_CMD_H__
81