Akihito Nakano cf657f1c7b [C++] Adjust the names (script, sample folder, generator) to lang option (#220)
* Rename script: qt5-petstore.sh -> cpp-qt5-petstore.sh

* Rename sample folder: qt5cpp -> cpp-qt5

* Rename script: cpprest-petstore.sh -> cpp-restsdk-petstore.sh

* Rename sample folder: cpprest -> cpp-restsdk

* Rename generator: CppRestClientCodegen -> CppRestSdkClientCodegen

* Rename script: tizen-petstore.sh -> cpp-tizen-petstore.sh

* Rename sample folder: tizen -> cpp-tizen

* Rename script(security): qt5cpp-petstore.sh -> cpp-qt5-petstore.sh

* Rename sample folder(security): qt5cpp -> cpp-qt5

* Rename script(windows): qt5cpp-petstore.bat -> cpp-qt5-petstore.bat

* Change sample folder

* Rename script(windows): cpprest-petstore.bat -> cpp-restsdk-petstore.bat

* Change sample folder

* Rename script(windows): tizen-petstore.bat -> cpp-tizen-petstore.bat

* Change sample folder

* Change output folder: tizen -> cpp-tizen

* Rename the scripts under bin/openapi3

cpp-restsdk is not exist under bin/openapi3

* Change sample folder
2018-06-07 16:55:43 +08:00

122 lines
1.9 KiB
C++

/*
* User.h
*
* A User who is purchasing from the pet store
*/
#ifndef _User_H_
#define _User_H_
#include <string>
#include "Object.h"
/** \defgroup Models Data Structures for API
* Classes containing all the Data Structures needed for calling/returned by API endpoints
*
*/
namespace Tizen {
namespace ArtikCloud {
/*! \brief A User who is purchasing from the pet store
*
* \ingroup Models
*
*/
class User : public Object {
public:
/*! \brief Constructor.
*/
User();
User(char* str);
/*! \brief Destructor.
*/
virtual ~User();
/*! \brief Retrieve a string JSON representation of this class.
*/
char* toJson();
/*! \brief Fills in members of this class from JSON string representing it.
*/
void fromJson(char* jsonStr);
/*! \brief Get
*/
long long getId();
/*! \brief Set
*/
void setId(long long id);
/*! \brief Get
*/
std::string getUsername();
/*! \brief Set
*/
void setUsername(std::string username);
/*! \brief Get
*/
std::string getFirstName();
/*! \brief Set
*/
void setFirstName(std::string firstName);
/*! \brief Get
*/
std::string getLastName();
/*! \brief Set
*/
void setLastName(std::string lastName);
/*! \brief Get
*/
std::string getEmail();
/*! \brief Set
*/
void setEmail(std::string email);
/*! \brief Get
*/
std::string getPassword();
/*! \brief Set
*/
void setPassword(std::string password);
/*! \brief Get
*/
std::string getPhone();
/*! \brief Set
*/
void setPhone(std::string phone);
/*! \brief Get User Status
*/
int getUserStatus();
/*! \brief Set User Status
*/
void setUserStatus(int userStatus);
private:
long long id;
std::string username;
std::string firstName;
std::string lastName;
std::string email;
std::string password;
std::string phone;
int userStatus;
void __init();
void __cleanup();
};
}
}
#endif /* _User_H_ */