forked from loafle/openapi-generator-original
[cpp][tiny] rename generator, update samples (#9560)
* rename generator, update samples * add doc * update readme
This commit is contained in:
25
samples/client/petstore/cpp-tiny/lib/service/Response.h
Normal file
25
samples/client/petstore/cpp-tiny/lib/service/Response.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef TINY_CPP_CLIENT_RESPONSE_H_
|
||||
#define TINY_CPP_CLIENT_RESPONSE_H_
|
||||
#include <string>
|
||||
|
||||
namespace Tiny {
|
||||
|
||||
/**
|
||||
* Class
|
||||
* Generated with openapi::tiny-cpp-client
|
||||
*/
|
||||
template <typename T = std::string>
|
||||
class Response {
|
||||
public:
|
||||
|
||||
Response(T _obj, int _code){
|
||||
obj = _obj;
|
||||
code = _code;
|
||||
}
|
||||
|
||||
int code;
|
||||
T obj;
|
||||
};
|
||||
} // namespace Tinyclient
|
||||
|
||||
#endif /* TINY_CPP_CLIENT_RESPONSE_H_ */
|
||||
Reference in New Issue
Block a user