mirror of
https://github.com/yawaflua/SpCloudCore.git
synced 2025-12-09 20:19:35 +02:00
33 lines
1.4 KiB
C++
33 lines
1.4 KiB
C++
#include <string>
|
|
#ifndef APP_H
|
|
#define APP_H
|
|
class App {
|
|
private:
|
|
std::string name;
|
|
std::string user_id;
|
|
std::string url;
|
|
std::string url_on_local_machine;
|
|
std::string target;
|
|
//std::string service_name;
|
|
|
|
public:
|
|
App(const std::string& name, const std::string& user_id, const std::string& url,
|
|
const std::string& url_on_local_machine, const std::string& target/*, const std::string& service_name*/)
|
|
: name(name), user_id(user_id), url(url), url_on_local_machine(url_on_local_machine), target(target)/*, service_name(service_name)*/ {}
|
|
|
|
std::string get_name() const { return name; }
|
|
std::string get_user_id() const { return user_id; }
|
|
std::string get_url() const { return url; }
|
|
std::string get_url_on_local_machine() const { return url_on_local_machine; }
|
|
std::string get_target() const { return target; }
|
|
//std::string get_service_name() const { return service_name; }
|
|
|
|
void set_name(const std::string& name) { this->name = name; }
|
|
void set_user_id(const std::string& user_id) { this->user_id = user_id; }
|
|
void set_url(const std::string& url) { this->url = url; }
|
|
void set_url_on_local_machine(const std::string& url_on_local_machine) { this->url_on_local_machine = url_on_local_machine; }
|
|
void set_target(const std::string& target) { this->target = target; }
|
|
//void set_service_name(const std::string& service_name) { this->service_name = service_name; }
|
|
};
|
|
#endif // APP_H
|