mastodon-cpp  0.30.0
application.hpp
1 /* This file is part of mastodon-cpp.
2  * Copyright © 2018 tastytea <tastytea@tastytea.de>
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, version 3.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef MASTODON_CPP_EASY_APPLICATION_HPP
18 #define MASTODON_CPP_EASY_APPLICATION_HPP
19 
20 #include <string>
21 
22 // If we are compiling mastodon-cpp, use another include path
23 #ifdef MASTODON_CPP
24  #include "mastodon-cpp.hpp"
25  #include "easy/easy.hpp"
26 #else
27  #include <mastodon-cpp/mastodon-cpp.hpp>
28  #include <mastodon-cpp/easy/easy.hpp>
29 #endif
30 
31 using std::string;
32 
33 namespace Mastodon
34 {
41  {
42  public:
50  explicit Application(const string &json);
51 
57  Application();
58 
59  virtual bool valid() const;
60 
66  const string name() const;
67 
73  const string website() const;
74 };
75 }
76 
77 #endif // MASTODON_CPP_EASY_APPLICATION_HPP
const string website() const
Returns the website of the application.
Definition: application.cpp:40
Application()
Constructs an empty Application object.
Definition: application.cpp:26
virtual bool valid() const
Returns true if the Entity holds valid data.
Definition: application.cpp:30
const string name() const
Returns the name of the application.
Definition: application.cpp:35
Definition: mastodon-cpp.hpp:52
Base class for all entities.
Definition: easy.hpp:319
Class to hold applications.
Definition: application.hpp:40