17 #ifndef MASTODON_CPP_EASY_ATTACHMENT_HPP 18 #define MASTODON_CPP_EASY_ATTACHMENT_HPP 27 #include "mastodon-cpp.hpp" 28 #include "easy/easy.hpp" 30 #include <mastodon-cpp/mastodon-cpp.hpp> 31 #include <mastodon-cpp/easy/easy.hpp> 35 using std::uint_fast64_t;
63 virtual bool valid()
const;
105 const std::chrono::duration<double>
duration()
const;
112 const string file()
const;
130 const std::array<double, 2>
focus()
const;
153 uint_fast64_t
height()
const;
167 const string id()
const;
188 const string size()
const;
216 const string url()
const;
223 uint_fast64_t
width()
const;
236 #endif // MASTODON_CPP_EASY_ATTACHMENT_HPP const string preview_url() const
Returns the URL of the preview image.
Definition: attachment.cpp:147
uint_fast64_t height_small() const
Returns the height of the preview image.
Definition: attachment.cpp:137
Attachment()
Constructs an empty Attachment object.
Definition: attachment.cpp:28
const string description() const
Returns the image description.
Definition: attachment.cpp:60
Class to hold attachments.
Definition: attachment.hpp:44
uint_fast64_t width_small() const
Returns the width of the preview image.
Definition: attachment.cpp:198
-
uint_fast64_t id() const
Returns the ID of the attachment.
Definition: attachment.cpp:142
attachment_type
Describes the attachment type.
Definition: easy.hpp:83
const string text_url() const
Returns shorter URL for the image.
Definition: attachment.cpp:167
const string size_small() const
Returns the size of the preview image.
Definition: attachment.cpp:162
@@ -66,6 +65,7 @@ $(function() {
attachment_type type() const
Returns attachment type.
Definition: attachment.cpp:172
Definition: mastodon-cpp.hpp:52
Base class for all entities.
Definition: easy.hpp:319
+
const string id() const
Returns the ID of the attachment.
Definition: attachment.cpp:142
uint_fast64_t height() const
Returns the height of the original image.
Definition: attachment.cpp:132
const string size() const
Returns the size of the original image.
Definition: attachment.cpp:157
double aspect_small() const
Aspect of preview image.
Definition: attachment.cpp:50
diff --git a/docs/card_8hpp_source.html b/docs/card_8hpp_source.html
index 92ad32c..c4470a6 100644
--- a/docs/card_8hpp_source.html
+++ b/docs/card_8hpp_source.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1API-members.html b/docs/classMastodon_1_1API-members.html
index 189de6a..f385bb4 100644
--- a/docs/classMastodon_1_1API-members.html
+++ b/docs/classMastodon_1_1API-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1API.html b/docs/classMastodon_1_1API.html
index be00d3c..dfacc17 100644
--- a/docs/classMastodon_1_1API.html
+++ b/docs/classMastodon_1_1API.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1API_1_1http-members.html b/docs/classMastodon_1_1API_1_1http-members.html
index a5b742d..58a4e67 100644
--- a/docs/classMastodon_1_1API_1_1http-members.html
+++ b/docs/classMastodon_1_1API_1_1http-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1API_1_1http.html b/docs/classMastodon_1_1API_1_1http.html
index 0505e4a..66eb1b8 100644
--- a/docs/classMastodon_1_1API_1_1http.html
+++ b/docs/classMastodon_1_1API_1_1http.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy-members.html b/docs/classMastodon_1_1Easy-members.html
index 4d61c92..f54ebe3 100644
--- a/docs/classMastodon_1_1Easy-members.html
+++ b/docs/classMastodon_1_1Easy-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -71,7 +71,7 @@ $(function() {
get_header(const string &header) const | Mastodon::API | |
get_instance() const | Mastodon::API | |
get_link() const | Mastodon::Easy | |
-
get_notifications(uint_fast16_t &error, const uint_fast16_t limit=20, const uint_fast64_t since_id=0, const uint_fast64_t max_id=0) | Mastodon::Easy | |
+
get_notifications(uint_fast16_t &error, const uint_fast16_t limit=20, const string since_id=0, const string max_id=0) | Mastodon::Easy | |
get_proxy(string &proxy, string &userpw) const | Mastodon::API | |
get_stream(const Mastodon::API::v1 &call, const parametermap ¶meters, string &answer, std::unique_ptr< Mastodon::API::http > &ptr) | Mastodon::API | |
get_stream(const Mastodon::API::v1 &call, string &answer, std::unique_ptr< Mastodon::API::http > &ptr) | Mastodon::API | |
diff --git a/docs/classMastodon_1_1Easy.html b/docs/classMastodon_1_1Easy.html
index eaa8e1c..8eb02b6 100644
--- a/docs/classMastodon_1_1Easy.html
+++ b/docs/classMastodon_1_1Easy.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -296,9 +296,9 @@ Public Member Functions
const Status | send_toot (const Status &status, uint_fast16_t &error) |
| Alias for send_post() More...
|
|
-
const vector< Notification > | get_notifications (uint_fast16_t &error, const uint_fast16_t limit=20, const uint_fast64_t since_id=0, const uint_fast64_t max_id=0) |
-
| Gets notifications. More...
|
-
|
+
const vector< Notification > | get_notifications (uint_fast16_t &error, const uint_fast16_t limit=20, const string since_id=0, const string max_id=0) |
+
| Gets notifications. More...
|
+
|
| API (const string &instance, const string &access_token) |
| Constructs a new API object. More...
|
@@ -680,8 +680,8 @@ static const string
strtim
-
-◆ get_notifications()
+
+◆ get_notifications()
@@ -701,13 +701,13 @@ static const string | strtim
|
|
- const uint_fast64_t |
+ const string |
since_id = 0 , |
|
|
- const uint_fast64_t |
+ const string |
max_id = 0 |
@@ -730,7 +730,7 @@ static const string strtim
- Returns
- vector of Easy::Notification.
- Since
- 0.21.0
- 149 parameters.insert({ "limit", { std::to_string(limit) } }); 152 parameters.insert({ "since_id", { std::to_string(since_id) } }); 156 parameters.insert({ "max_id", { std::to_string(max_id) } }); 159 error = API::get(Mastodon::API::v1::notifications, parameters, answer); 164 vector<Notification> notifications; 165 notifications.resize(answer_v.size()); 168 std::transform(answer_v.begin(), answer_v.end(), notifications.begin(), 172 return notifications; 176 ttdebug << "ERROR: Could not get notifications.\n"; Class to hold notifications. Definition: notification.hpp:48
+ 149 parameters.insert({ "limit", { std::to_string(limit) } }); 150 if (!since_id.empty()) 152 parameters.insert({ "since_id", { since_id } }); 156 parameters.insert({ "max_id", { max_id } }); 159 error = API::get(Mastodon::API::v1::notifications, parameters, answer); 164 vector<Notification> notifications; 165 notifications.resize(answer_v.size()); 168 std::transform(answer_v.begin(), answer_v.end(), notifications.begin(), 172 return notifications; 176 ttdebug << "ERROR: Could not get notifications.\n"; Class to hold notifications. Definition: notification.hpp:48
static const std::vector< string > json_array_to_vector(const string &json) Turns a JSON array into a vector of strings. Definition: easy.cpp:31
uint_fast16_t get(const Mastodon::API::v1 &call, string &answer) Make a GET request which doesn't require parameters. Definition: get.cpp:207
std::map< string, std::vector< string > > parametermap Used for passing parameters. Definition: mastodon-cpp.hpp:189
@@ -847,7 +847,7 @@ static const string | strtim
- Returns
- The new Easy::Status
- Since
- 0.18.1
- 39 parameters.insert({ "status", { status. content() }}); 43 ttdebug << "ERROR: Easy::Status::content can not be empty.\n"; 50 parameters.insert({ "in_reply_to_id", 55 parameters.insert({ "sensitive", { "true" }}); 59 parameters.insert({ "spoiler_text", { status. spoiler_text() }}); 61 if (status. visibility() != visibility_type::Undefined) 66 case visibility_type::Direct: 67 visibility = "direct"; 69 case visibility_type::Private: 70 visibility = "private"; 72 case visibility_type::Unlisted: 73 visibility = "unlisted"; 75 case visibility_type::Public: 76 visibility = "public"; 81 parameters.insert({ "visibility", { visibility }}); 85 parameters.insert({ "language", { status. language() }}); 89 std::vector<string> media_ids; 93 if (!att.file().empty()) 95 param_att.insert({ "file", { att.file() }}); 99 ttdebug << "ERROR: Easy::Attachment::file can not be empty.\n"; 103 if (!att.description().empty()) 105 param_att.insert({ "description", { att.description() }}); 107 if (!att.focus().empty()) 109 param_att.insert({ "focus", 110 { std::to_string(att.focus()[0]) + ',' + 111 std::to_string(att.focus()[1]) }}); 114 error = post(API::v1::media, param_att, answer); 118 media_ids.push_back(std::to_string(attachment.id())); 122 ttdebug << "ERROR: Could not upload file.\n"; 127 parameters.insert({ "media_ids", media_ids }); 130 error = post(API::v1::statuses, parameters, answer); bool sensitive() const Returns true if the attachments should be hidden by default. Definition: status.cpp:244
+ 39 parameters.insert({ "status", { status. content() }}); 43 ttdebug << "ERROR: Easy::Status::content can not be empty.\n"; 50 parameters.insert({ "in_reply_to_id", 55 parameters.insert({ "sensitive", { "true" }}); 59 parameters.insert({ "spoiler_text", { status. spoiler_text() }}); 61 if (status. visibility() != visibility_type::Undefined) 66 case visibility_type::Direct: 67 visibility = "direct"; 69 case visibility_type::Private: 70 visibility = "private"; 72 case visibility_type::Unlisted: 73 visibility = "unlisted"; 75 case visibility_type::Public: 76 visibility = "public"; 81 parameters.insert({ "visibility", { visibility }}); 85 parameters.insert({ "language", { status. language() }}); 89 std::vector<string> media_ids; 93 if (!att.file().empty()) 95 param_att.insert({ "file", { att.file() }}); 99 ttdebug << "ERROR: Easy::Attachment::file can not be empty.\n"; 103 if (!att.description().empty()) 105 param_att.insert({ "description", { att.description() }}); 107 if (!att.focus().empty()) 109 param_att.insert({ "focus", 110 { std::to_string(att.focus()[0]) + ',' + 111 std::to_string(att.focus()[1]) }}); 114 error = post(API::v1::media, param_att, answer); 118 media_ids.push_back(attachment.id()); 122 ttdebug << "ERROR: Could not upload file.\n"; 127 parameters.insert({ "media_ids", media_ids }); 130 error = post(API::v1::statuses, parameters, answer); bool sensitive() const Returns true if the attachments should be hidden by default. Definition: status.cpp:244
Class to hold attachments. Definition: attachment.hpp:44
uint_fast16_t post(const Mastodon::API::v1 &call, string &answer) Make a POST request which doesn't require parameters. Definition: post.cpp:140
const std::vector< Attachment > media_attachments() const Returns the attachments. Definition: status.cpp:162
@@ -857,7 +857,7 @@ static const string | strtim
const string content() const Returns content of status. Definition: status.cpp:93
std::map< string, std::vector< string > > parametermap Used for passing parameters. Definition: mastodon-cpp.hpp:189
const string spoiler_text() const Returns the spoiler text. Definition: status.cpp:255
-uint_fast64_t in_reply_to_id() const Returns the ID of the status it replies to. Definition: status.cpp:135
+const string in_reply_to_id() const Returns the ID of the status it replies to. Definition: status.cpp:135
diff --git a/docs/classMastodon_1_1Easy_1_1Account-members.html b/docs/classMastodon_1_1Easy_1_1Account-members.html
index 61ff179..3696411 100644
--- a/docs/classMastodon_1_1Easy_1_1Account-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Account-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -81,7 +81,7 @@ $(function() {
header() const | Mastodon::Easy::Account | |
header(const string &header) | Mastodon::Easy::Account | |
header_static() const | Mastodon::Easy::Account | |
- id() const | Mastodon::Easy::Account | |
+ id() const | Mastodon::Easy::Account | |
locked() const | Mastodon::Easy::Account | |
locked(const bool &locked) | Mastodon::Easy::Account | |
moved() const | Mastodon::Easy::Account | |
diff --git a/docs/classMastodon_1_1Easy_1_1Account.html b/docs/classMastodon_1_1Easy_1_1Account.html
index ce91888..eba0c2b 100644
--- a/docs/classMastodon_1_1Easy_1_1Account.html
+++ b/docs/classMastodon_1_1Easy_1_1Account.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -135,9 +135,9 @@ Public Member Functions |
const string | header_static () const |
| Returns URL of static header image. More...
|
|
-uint_fast64_t | id () const |
- | Returns account-ID. More...
|
- |
+const string | id () const |
+ | Returns account-ID. More...
|
+ |
bool | locked () const |
| Returns true if the account is locked. More...
|
|
@@ -655,14 +655,14 @@ std::uint_fast64_t | stouint
-
-◆ id()
+
+◆ id()
- std::uint_fast64_t Account::id |
+ const string Account::id |
( |
| ) |
const |
@@ -672,7 +672,7 @@ std::uint_fast64_t stouint
Returns account-ID.
- Since
- before 0.11.0
-const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
+ const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
diff --git a/docs/classMastodon_1_1Easy_1_1Account_1_1Source-members.html b/docs/classMastodon_1_1Easy_1_1Account_1_1Source-members.html
index adcba36..64be4af 100644
--- a/docs/classMastodon_1_1Easy_1_1Account_1_1Source-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Account_1_1Source-members.html
@@ -19,7 +19,7 @@
|
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Account_1_1Source.html b/docs/classMastodon_1_1Easy_1_1Account_1_1Source.html
index 02cb517..8a3bdcd 100644
--- a/docs/classMastodon_1_1Easy_1_1Account_1_1Source.html
+++ b/docs/classMastodon_1_1Easy_1_1Account_1_1Source.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Application-members.html b/docs/classMastodon_1_1Easy_1_1Application-members.html
index 7af5991..93ed5ba 100644
--- a/docs/classMastodon_1_1Easy_1_1Application-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Application-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Application.html b/docs/classMastodon_1_1Easy_1_1Application.html
index 8c2fef5..f10c924 100644
--- a/docs/classMastodon_1_1Easy_1_1Application.html
+++ b/docs/classMastodon_1_1Easy_1_1Application.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Attachment-members.html b/docs/classMastodon_1_1Easy_1_1Attachment-members.html
index 2d7e06a..9a27518 100644
--- a/docs/classMastodon_1_1Easy_1_1Attachment-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Attachment-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -77,7 +77,7 @@ $(function() {
get_vector(const string &key) const | Mastodon::Easy::Entity | protected |
height() const | Mastodon::Easy::Attachment | |
height_small() const | Mastodon::Easy::Attachment | |
- id() const | Mastodon::Easy::Attachment | |
+ id() const | Mastodon::Easy::Attachment | |
preview_url() const | Mastodon::Easy::Attachment | |
remote_url() const | Mastodon::Easy::Attachment | |
set(const string &key, const Json::Value &value) | Mastodon::Easy::Entity | protected |
diff --git a/docs/classMastodon_1_1Easy_1_1Attachment.html b/docs/classMastodon_1_1Easy_1_1Attachment.html
index b4c729c..3308683 100644
--- a/docs/classMastodon_1_1Easy_1_1Attachment.html
+++ b/docs/classMastodon_1_1Easy_1_1Attachment.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -115,9 +115,9 @@ Public Member Functions
uint_fast64_t | height_small () const |
| Returns the height of the preview image. More...
|
|
-uint_fast64_t | id () const |
- | Returns the ID of the attachment. More...
|
- |
+const string | id () const |
+ | Returns the ID of the attachment. More...
|
+ |
const string | preview_url () const |
| Returns the URL of the preview image. More...
|
|
@@ -544,14 +544,14 @@ std::uint_fast64_t stouint
-
-◆ id()
+
+◆ id()
- std::uint_fast64_t Attachment::id |
+ const string Attachment::id |
( |
| ) |
const |
@@ -561,7 +561,7 @@ std::uint_fast64_t stouint
Returns the ID of the attachment.
- Since
- before 0.11.0
-const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
+ const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
diff --git a/docs/classMastodon_1_1Easy_1_1Card-members.html b/docs/classMastodon_1_1Easy_1_1Card-members.html
index 31fc3ec..4c4485d 100644
--- a/docs/classMastodon_1_1Easy_1_1Card-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Card-members.html
@@ -19,7 +19,7 @@
|
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Card.html b/docs/classMastodon_1_1Easy_1_1Card.html
index 54040e9..379a6d1 100644
--- a/docs/classMastodon_1_1Easy_1_1Card.html
+++ b/docs/classMastodon_1_1Easy_1_1Card.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Context-members.html b/docs/classMastodon_1_1Easy_1_1Context-members.html
index 6c38b35..3f4a2c9 100644
--- a/docs/classMastodon_1_1Easy_1_1Context-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Context-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Context.html b/docs/classMastodon_1_1Easy_1_1Context.html
index 89e7c89..d5aa8c4 100644
--- a/docs/classMastodon_1_1Easy_1_1Context.html
+++ b/docs/classMastodon_1_1Easy_1_1Context.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Emoji-members.html b/docs/classMastodon_1_1Easy_1_1Emoji-members.html
index e1af9fc..ff170f7 100644
--- a/docs/classMastodon_1_1Easy_1_1Emoji-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Emoji-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Emoji.html b/docs/classMastodon_1_1Easy_1_1Emoji.html
index b40e3a0..b78b2c8 100644
--- a/docs/classMastodon_1_1Easy_1_1Emoji.html
+++ b/docs/classMastodon_1_1Easy_1_1Emoji.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Entity-members.html b/docs/classMastodon_1_1Easy_1_1Entity-members.html
index 3d355b2..f06b1da 100644
--- a/docs/classMastodon_1_1Easy_1_1Entity-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Entity-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Entity.html b/docs/classMastodon_1_1Easy_1_1Entity.html
index 3fe74e7..ac37eb6 100644
--- a/docs/classMastodon_1_1Easy_1_1Entity.html
+++ b/docs/classMastodon_1_1Easy_1_1Entity.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -577,7 +577,7 @@ std::uint_fast64_t stouint
Returns true if the Entity holds valid data.
- Since
- before 0.11.0 (virtual since 0.18.2)
-Implemented in Mastodon::Easy::Account::Source, Mastodon::Easy::Tag, Mastodon::Easy::Status, Mastodon::Easy::Account, Mastodon::Easy::Tag::History, Mastodon::Easy::Notification, Mastodon::Easy::Results, Mastodon::Easy::Instance, Mastodon::Easy::Attachment, Mastodon::Easy::Context, Mastodon::Easy::List, Mastodon::Easy::Mention, Mastodon::Easy::PushSubscription, Mastodon::Easy::Card, Mastodon::Easy::Relationship, Mastodon::Easy::Report, Mastodon::Easy::Application, and Mastodon::Easy::Emoji.
+Implemented in Mastodon::Easy::Account::Source, Mastodon::Easy::Tag, Mastodon::Easy::Status, Mastodon::Easy::Account, Mastodon::Easy::Tag::History, Mastodon::Easy::Notification, Mastodon::Easy::Results, Mastodon::Easy::Instance, Mastodon::Easy::Attachment, Mastodon::Easy::Context, Mastodon::Easy::List, Mastodon::Easy::Mention, Mastodon::Easy::Card, Mastodon::Easy::PushSubscription, Mastodon::Easy::Relationship, Mastodon::Easy::Report, Mastodon::Easy::Application, and Mastodon::Easy::Emoji.
diff --git a/docs/classMastodon_1_1Easy_1_1Instance-members.html b/docs/classMastodon_1_1Easy_1_1Instance-members.html
index 8413c6c..80f9bd2 100644
--- a/docs/classMastodon_1_1Easy_1_1Instance-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Instance-members.html
@@ -19,7 +19,7 @@
|
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Instance.html b/docs/classMastodon_1_1Easy_1_1Instance.html
index 34a1d56..c668d55 100644
--- a/docs/classMastodon_1_1Easy_1_1Instance.html
+++ b/docs/classMastodon_1_1Easy_1_1Instance.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Link-members.html b/docs/classMastodon_1_1Easy_1_1Link-members.html
index 73a558b..c8b83e4 100644
--- a/docs/classMastodon_1_1Easy_1_1Link-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Link-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -51,10 +51,10 @@ $(function() {
This is the complete list of members for Mastodon::Easy::Link, including all inherited members.
Class to hold the Link -header.
@@ -108,18 +108,18 @@ Public Member Functions |
- Since
- before 0.11.0
- 122 std::regex renext( "max_id=([[:digit:]]*)"); 123 std::regex reprev( "since_id=([[:digit:]]*)"); 126 if (std::regex_search(link_header, match, renext)) 128 _next = std::stoull(match[1].str()); 130 if (std::regex_search(link_header, match, reprev)) 132 _prev = std::stoull(match[1].str());
+ 122 std::regex renext( "max_id=([[:digit:]]*)"); 123 std::regex reprev( "since_id=([[:digit:]]*)"); 126 if (std::regex_search(link_header, match, renext)) 128 _next = match[1].str(); 130 if (std::regex_search(link_header, match, reprev)) 132 _prev = match[1].str();
-
-◆ max_id()
+
+◆ max_id()
- uint_fast64_t Easy::Link::max_id |
+ const string Easy::Link::max_id |
( |
| ) |
const |
@@ -132,14 +132,14 @@ Public Member Functions
-
-◆ next()
+
+◆ next()
- uint_fast64_t Easy::Link::next |
+ const string Easy::Link::next |
( |
| ) |
const |
@@ -152,14 +152,14 @@ Public Member Functions
-
-◆ prev()
+
+◆ prev()
- uint_fast64_t Easy::Link::prev |
+ const string Easy::Link::prev |
( |
| ) |
const |
@@ -172,14 +172,14 @@ Public Member Functions
-
-◆ since_id()
+
+◆ since_id()
- uint_fast64_t Easy::Link::since_id |
+ const string Easy::Link::since_id |
( |
| ) |
const |
diff --git a/docs/classMastodon_1_1Easy_1_1List-members.html b/docs/classMastodon_1_1Easy_1_1List-members.html
index ba6fad0..fc79c30 100644
--- a/docs/classMastodon_1_1Easy_1_1List-members.html
+++ b/docs/classMastodon_1_1Easy_1_1List-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -62,7 +62,7 @@ $(function() {
get_time_point(const string &key) const | Mastodon::Easy::Entity | protected |
get_uint64(const string &key) const | Mastodon::Easy::Entity | protected |
get_vector(const string &key) const | Mastodon::Easy::Entity | protected |
- id() const | Mastodon::Easy::List | |
+ id() const | Mastodon::Easy::List | |
List(const string &json) | Mastodon::Easy::List | explicit |
List() | Mastodon::Easy::List | |
set(const string &key, const Json::Value &value) | Mastodon::Easy::Entity | protected |
diff --git a/docs/classMastodon_1_1Easy_1_1List.html b/docs/classMastodon_1_1Easy_1_1List.html
index fef74e5..5957fbd 100644
--- a/docs/classMastodon_1_1Easy_1_1List.html
+++ b/docs/classMastodon_1_1Easy_1_1List.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -76,9 +76,9 @@ Public Member Functions
virtual bool | valid () const |
| Returns true if the Entity holds valid data. More...
|
|
-uint_fast64_t | id () const |
- | Returns list-ID. More...
|
- |
+const string | id () const |
+ | Returns list-ID. More...
|
+ |
const string | title () const |
| Returns title. More...
|
|
@@ -198,14 +198,14 @@ std::uint_fast64_t stouint
-
-◆ id()
+
+◆ id()
- uint_fast64_t List::id |
+ const string List::id |
( |
| ) |
const |
@@ -215,7 +215,7 @@ std::uint_fast64_t stouint
Returns list-ID.
- Since
- before 0.11.0
-const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
+ const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
diff --git a/docs/classMastodon_1_1Easy_1_1Mention-members.html b/docs/classMastodon_1_1Easy_1_1Mention-members.html
index 765b2d8..eb8b097 100644
--- a/docs/classMastodon_1_1Easy_1_1Mention-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Mention-members.html
@@ -19,7 +19,7 @@
|
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -63,7 +63,7 @@ $(function() {
get_time_point(const string &key) const | Mastodon::Easy::Entity | protected |
get_uint64(const string &key) const | Mastodon::Easy::Entity | protected |
get_vector(const string &key) const | Mastodon::Easy::Entity | protected |
- id() const | Mastodon::Easy::Mention | |
+ id() const | Mastodon::Easy::Mention | |
Mention(const string &json) | Mastodon::Easy::Mention | explicit |
Mention() | Mastodon::Easy::Mention | |
set(const string &key, const Json::Value &value) | Mastodon::Easy::Entity | protected |
diff --git a/docs/classMastodon_1_1Easy_1_1Mention.html b/docs/classMastodon_1_1Easy_1_1Mention.html
index e69d5a4..2d823d7 100644
--- a/docs/classMastodon_1_1Easy_1_1Mention.html
+++ b/docs/classMastodon_1_1Easy_1_1Mention.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -79,9 +79,9 @@ Public Member Functions
const string | acct () const |
| Returns acct. More...
|
|
-uint_fast64_t | id () const |
- | Returns account ID. More...
|
- |
+const string | id () const |
+ | Returns account ID. More...
|
+ |
const string | url () const |
| Returns the URL of user's profile. More...
|
|
@@ -225,14 +225,14 @@ std::uint_fast64_t stouint
-
-◆ id()
+
+◆ id()
- uint_fast64_t Mention::id |
+ const string Mention::id |
( |
| ) |
const |
@@ -242,7 +242,7 @@ std::uint_fast64_t stouint
Returns account ID.
- Since
- before 0.11.0
-const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
+ const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
diff --git a/docs/classMastodon_1_1Easy_1_1Notification-members.html b/docs/classMastodon_1_1Easy_1_1Notification-members.html
index b473d37..8781de8 100644
--- a/docs/classMastodon_1_1Easy_1_1Notification-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Notification-members.html
@@ -19,7 +19,7 @@
|
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -64,7 +64,7 @@ $(function() {
get_time_point(const string &key) const | Mastodon::Easy::Entity | protected |
get_uint64(const string &key) const | Mastodon::Easy::Entity | protected |
get_vector(const string &key) const | Mastodon::Easy::Entity | protected |
- id() const | Mastodon::Easy::Notification | |
+ id() const | Mastodon::Easy::Notification | |
Notification(const string &json) | Mastodon::Easy::Notification | explicit |
Notification() | Mastodon::Easy::Notification | |
set(const string &key, const Json::Value &value) | Mastodon::Easy::Entity | protected |
diff --git a/docs/classMastodon_1_1Easy_1_1Notification.html b/docs/classMastodon_1_1Easy_1_1Notification.html
index 29ecd1f..e3d85cf 100644
--- a/docs/classMastodon_1_1Easy_1_1Notification.html
+++ b/docs/classMastodon_1_1Easy_1_1Notification.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -82,9 +82,9 @@ Public Member Functions
const system_clock::time_point | created_at () const |
| Returns time of creation. More...
|
|
-uint_fast64_t | id () const |
- | Returns notification ID. More...
|
- |
+const string | id () const |
+ | Returns notification ID. More...
|
+ |
const Status | status () const |
| Returns the Status associated with the notification, if applicable. More...
|
|
@@ -249,14 +249,14 @@ std::uint_fast64_t stouint
-
-◆ id()
+
+◆ id()
- uint_fast64_t Notification::id |
+ const string Notification::id |
( |
| ) |
const |
@@ -266,7 +266,7 @@ std::uint_fast64_t stouint
Returns notification ID.
- Since
- before 0.11.0
-const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
+ const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
diff --git a/docs/classMastodon_1_1Easy_1_1PushSubscription-members.html b/docs/classMastodon_1_1Easy_1_1PushSubscription-members.html
index 5a46f9c..ef7052c 100644
--- a/docs/classMastodon_1_1Easy_1_1PushSubscription-members.html
+++ b/docs/classMastodon_1_1Easy_1_1PushSubscription-members.html
@@ -19,7 +19,7 @@
|
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -64,7 +64,7 @@ $(function() {
get_time_point(const string &key) const | Mastodon::Easy::Entity | protected |
get_uint64(const string &key) const | Mastodon::Easy::Entity | protected |
get_vector(const string &key) const | Mastodon::Easy::Entity | protected |
- id() const | Mastodon::Easy::PushSubscription | |
+ id() const | Mastodon::Easy::PushSubscription | |
PushSubscription(const string &json) | Mastodon::Easy::PushSubscription | explicit |
PushSubscription() | Mastodon::Easy::PushSubscription | |
s_to_b(const string &str) const | Mastodon::Easy::PushSubscription | protected |
diff --git a/docs/classMastodon_1_1Easy_1_1PushSubscription.html b/docs/classMastodon_1_1Easy_1_1PushSubscription.html
index e95358c..dcdbd13 100644
--- a/docs/classMastodon_1_1Easy_1_1PushSubscription.html
+++ b/docs/classMastodon_1_1Easy_1_1PushSubscription.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -77,9 +77,9 @@ Public Member Functions
virtual bool | valid () const |
| Returns true if the Entity holds valid data. More...
|
|
-uint_fast64_t | id () const |
- | Returns push subscription ID. More...
|
- |
+const string | id () const |
+ | Returns push subscription ID. More...
|
+ |
const string | endpoint () const |
| Returns the endpoint URL. More...
|
|
@@ -253,14 +253,14 @@ std::uint_fast64_t stouint
-
-◆ id()
+
+◆ id()
- uint_fast64_t PushSubscription::id |
+ const string PushSubscription::id |
( |
| ) |
const |
@@ -270,7 +270,7 @@ std::uint_fast64_t stouint
Returns push subscription ID.
- Since
- 0.14.0
-const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
+ const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
diff --git a/docs/classMastodon_1_1Easy_1_1Relationship-members.html b/docs/classMastodon_1_1Easy_1_1Relationship-members.html
index 7b43109..7a09bf5 100644
--- a/docs/classMastodon_1_1Easy_1_1Relationship-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Relationship-members.html
@@ -19,7 +19,7 @@
|
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -67,7 +67,7 @@ $(function() {
get_time_point(const string &key) const | Mastodon::Easy::Entity | protected |
get_uint64(const string &key) const | Mastodon::Easy::Entity | protected |
get_vector(const string &key) const | Mastodon::Easy::Entity | protected |
- id() const | Mastodon::Easy::Relationship | |
+ id() const | Mastodon::Easy::Relationship | |
muting() const | Mastodon::Easy::Relationship | |
muting_notifications() const | Mastodon::Easy::Relationship | |
Relationship(const string &json) | Mastodon::Easy::Relationship | explicit |
diff --git a/docs/classMastodon_1_1Easy_1_1Relationship.html b/docs/classMastodon_1_1Easy_1_1Relationship.html
index 0f4376a..d24cadc 100644
--- a/docs/classMastodon_1_1Easy_1_1Relationship.html
+++ b/docs/classMastodon_1_1Easy_1_1Relationship.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -91,9 +91,9 @@ Public Member Functions
bool | following () const |
| Returns true if the user is being following the account. More...
|
|
-uint_fast64_t | id () const |
- | Returns the target account ID. More...
|
- |
+const string | id () const |
+ | Returns the target account ID. More...
|
+ |
bool | muting () const |
| Returns true if the user is muting the account. More...
|
|
@@ -327,14 +327,14 @@ std::uint_fast64_t stouint
-
-◆ id()
+
+◆ id()
- uint_fast64_t Relationship::id |
+ const string Relationship::id |
( |
| ) |
const |
@@ -344,7 +344,7 @@ std::uint_fast64_t stouint
Returns the target account ID.
- Since
- before 0.11.0
-const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
+ const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
diff --git a/docs/classMastodon_1_1Easy_1_1Report-members.html b/docs/classMastodon_1_1Easy_1_1Report-members.html
index 5c350bc..55fcaa6 100644
--- a/docs/classMastodon_1_1Easy_1_1Report-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Report-members.html
@@ -19,7 +19,7 @@
|
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -63,7 +63,7 @@ $(function() {
get_time_point(const string &key) const | Mastodon::Easy::Entity | protected |
get_uint64(const string &key) const | Mastodon::Easy::Entity | protected |
get_vector(const string &key) const | Mastodon::Easy::Entity | protected |
- id() const | Mastodon::Easy::Report | |
+ id() const | Mastodon::Easy::Report | |
Report(const string &json) | Mastodon::Easy::Report | explicit |
Report() | Mastodon::Easy::Report | |
set(const string &key, const Json::Value &value) | Mastodon::Easy::Entity | protected |
diff --git a/docs/classMastodon_1_1Easy_1_1Report.html b/docs/classMastodon_1_1Easy_1_1Report.html
index b5b7225..857d99f 100644
--- a/docs/classMastodon_1_1Easy_1_1Report.html
+++ b/docs/classMastodon_1_1Easy_1_1Report.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -79,9 +79,9 @@ Public Member Functions
bool | action_taken () const |
| Returns true if an action was taken in response to the report. More...
|
|
-uint_fast64_t | id () const |
- | Returns the ID of the report. More...
|
- |
+const string | id () const |
+ | Returns the ID of the report. More...
|
+ |
| Entity (const string &json) |
| Constructs an Entity object from a JSON string. More...
|
@@ -219,14 +219,14 @@ std::uint_fast64_t stouint
-
-◆ id()
+
+◆ id()
- uint_fast64_t Report::id |
+ const string Report::id |
( |
| ) |
const |
@@ -236,7 +236,7 @@ std::uint_fast64_t stouint
Returns the ID of the report.
- Since
- before 0.11.0
-const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
+ const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
diff --git a/docs/classMastodon_1_1Easy_1_1Results-members.html b/docs/classMastodon_1_1Easy_1_1Results-members.html
index afb488b..75c4c50 100644
--- a/docs/classMastodon_1_1Easy_1_1Results-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Results-members.html
@@ -19,7 +19,7 @@
|
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Results.html b/docs/classMastodon_1_1Easy_1_1Results.html
index a50884c..6aae1a4 100644
--- a/docs/classMastodon_1_1Easy_1_1Results.html
+++ b/docs/classMastodon_1_1Easy_1_1Results.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Status-members.html b/docs/classMastodon_1_1Easy_1_1Status-members.html
index e40f491..1f9b61d 100644
--- a/docs/classMastodon_1_1Easy_1_1Status-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Status-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -71,10 +71,10 @@ $(function() {
get_time_point(const string &key) const | Mastodon::Easy::Entity | protected |
get_uint64(const string &key) const | Mastodon::Easy::Entity | protected |
get_vector(const string &key) const | Mastodon::Easy::Entity | protected |
- id() const | Mastodon::Easy::Status | |
- in_reply_to_account_id() const | Mastodon::Easy::Status | |
- in_reply_to_id() const | Mastodon::Easy::Status | |
- in_reply_to_id(const uint_fast64_t &in_reply_to_id) | Mastodon::Easy::Status | |
+ id() const | Mastodon::Easy::Status | |
+ in_reply_to_account_id() const | Mastodon::Easy::Status | |
+ in_reply_to_id() const | Mastodon::Easy::Status | |
+ in_reply_to_id(const string &in_reply_to_id) | Mastodon::Easy::Status | |
language() const | Mastodon::Easy::Status | |
language(const string &language) | Mastodon::Easy::Status | |
media_attachments() const | Mastodon::Easy::Status | |
diff --git a/docs/classMastodon_1_1Easy_1_1Status.html b/docs/classMastodon_1_1Easy_1_1Status.html
index 818ba5e..7fe5e41 100644
--- a/docs/classMastodon_1_1Easy_1_1Status.html
+++ b/docs/classMastodon_1_1Easy_1_1Status.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -103,18 +103,18 @@ Public Member Functions
uint_fast64_t | favourites_count () const |
| Returns the number of favourites. More...
|
|
-uint_fast64_t | id () const |
- | Returns the ID of the status. More...
|
- |
-uint_fast64_t | in_reply_to_id () const |
- | Returns the ID of the status it replies to. More...
|
- |
-Status | in_reply_to_id (const uint_fast64_t &in_reply_to_id) |
- | Sets the ID of the status it replies to. More...
|
- |
-uint_fast64_t | in_reply_to_account_id () const |
- | Returns the ID of the account it replies to. More...
|
- |
+const string | id () const |
+ | Returns the ID of the status. More...
|
+ |
+const string | in_reply_to_id () const |
+ | Returns the ID of the status it replies to. More...
|
+ |
+Status | in_reply_to_id (const string &in_reply_to_id) |
+ | Sets the ID of the status it replies to. More...
|
+ |
+const string | in_reply_to_account_id () const |
+ | Returns the ID of the account it replies to. More...
|
+ |
const string | language () const |
| Returns the language of the status. More...
|
|
@@ -481,14 +481,14 @@ std::uint_fast64_t stouint
-
-◆ id()
+
+◆ id()
- uint_fast64_t Status::id |
+ const string Status::id |
( |
| ) |
const |
@@ -498,18 +498,18 @@ std::uint_fast64_t stouint
Returns the ID of the status.
- Since
- before 0.11.0
-const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
+ const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
-
-◆ in_reply_to_account_id()
+
+◆ in_reply_to_account_id()
- uint_fast64_t Status::in_reply_to_account_id |
+ const string Status::in_reply_to_account_id |
( |
| ) |
const |
@@ -519,18 +519,18 @@ std::uint_fast64_t stouint
Returns the ID of the account it replies to.
- Since
- before 0.11.0
- 148 return stouint64( get_string( "in_reply_to_account_id")); const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
+ const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
-
-◆ in_reply_to_id() [1/2]
+
+◆ in_reply_to_id() [1/2]
- uint_fast64_t Status::in_reply_to_id |
+ const string Status::in_reply_to_id |
( |
| ) |
const |
@@ -540,12 +540,12 @@ std::uint_fast64_t stouint
Returns the ID of the status it replies to.
- Since
- before 0.11.0
- 137 return stouint64( get_string( "in_reply_to_id")); const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
+ const string get_string(const string &key) const Returns the value of key as std::string. Definition: entity.cpp:134
-
-◆ in_reply_to_id() [2/2]
+
+◆ in_reply_to_id() [2/2]
@@ -553,7 +553,7 @@ std::uint_fast64_t | stouint
Status Status::in_reply_to_id |
( |
- const uint_fast64_t & |
+ const string & |
in_reply_to_id | ) |
|
@@ -562,7 +562,7 @@ std::uint_fast64_t | stouint
Sets the ID of the status it replies to.
- Since
- 0.17.0
- 142 set( "in_reply_to_id", Json::Value(std::to_string( in_reply_to_id))); uint_fast64_t in_reply_to_id() const Returns the ID of the status it replies to. Definition: status.cpp:135
+ const string in_reply_to_id() const Returns the ID of the status it replies to. Definition: status.cpp:135
diff --git a/docs/classMastodon_1_1Easy_1_1Tag-members.html b/docs/classMastodon_1_1Easy_1_1Tag-members.html
index da0717f..df00cdf 100644
--- a/docs/classMastodon_1_1Easy_1_1Tag-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Tag-members.html
@@ -19,7 +19,7 @@
|
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Tag.html b/docs/classMastodon_1_1Easy_1_1Tag.html
index 0e9501f..a0143f0 100644
--- a/docs/classMastodon_1_1Easy_1_1Tag.html
+++ b/docs/classMastodon_1_1Easy_1_1Tag.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Tag_1_1History-members.html b/docs/classMastodon_1_1Easy_1_1Tag_1_1History-members.html
index 525e4ef..23f31ea 100644
--- a/docs/classMastodon_1_1Easy_1_1Tag_1_1History-members.html
+++ b/docs/classMastodon_1_1Easy_1_1Tag_1_1History-members.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classMastodon_1_1Easy_1_1Tag_1_1History.html b/docs/classMastodon_1_1Easy_1_1Tag_1_1History.html
index 6286159..a756b52 100644
--- a/docs/classMastodon_1_1Easy_1_1Tag_1_1History.html
+++ b/docs/classMastodon_1_1Easy_1_1Tag_1_1History.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/classes.html b/docs/classes.html
index ae2dedd..331069c 100644
--- a/docs/classes.html
+++ b/docs/classes.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/context_8hpp_source.html b/docs/context_8hpp_source.html
index 1493232..1e5d8b5 100644
--- a/docs/context_8hpp_source.html
+++ b/docs/context_8hpp_source.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/dir_68267d1309a1af8e8297ef4c3efbcdba.html b/docs/dir_68267d1309a1af8e8297ef4c3efbcdba.html
index 4756c12..3efb773 100644
--- a/docs/dir_68267d1309a1af8e8297ef4c3efbcdba.html
+++ b/docs/dir_68267d1309a1af8e8297ef4c3efbcdba.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/dir_9d328871126a6a5820f3cd5c0c41741e.html b/docs/dir_9d328871126a6a5820f3cd5c0c41741e.html
index ca797d9..0afee55 100644
--- a/docs/dir_9d328871126a6a5820f3cd5c0c41741e.html
+++ b/docs/dir_9d328871126a6a5820f3cd5c0c41741e.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/dir_da61e3e9a357748887e3ca8d7c5a0c16.html b/docs/dir_da61e3e9a357748887e3ca8d7c5a0c16.html
index 9d1bcc1..b6d8094 100644
--- a/docs/dir_da61e3e9a357748887e3ca8d7c5a0c16.html
+++ b/docs/dir_da61e3e9a357748887e3ca8d7c5a0c16.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/dir_e526f556af6ddef7955f0f6556f0f4d0.html b/docs/dir_e526f556af6ddef7955f0f6556f0f4d0.html
index acde292..9f9abda 100644
--- a/docs/dir_e526f556af6ddef7955f0f6556f0f4d0.html
+++ b/docs/dir_e526f556af6ddef7955f0f6556f0f4d0.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/easy_8hpp_source.html b/docs/easy_8hpp_source.html
index 534e054..7e15bfa 100644
--- a/docs/easy_8hpp_source.html
+++ b/docs/easy_8hpp_source.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -47,25 +47,22 @@ $(function() {
easy.hpp
- 17 #ifndef MASTODON_EASY_CPP_HPP 18 #define MASTODON_EASY_CPP_HPP 26 #include <jsoncpp/json/json.h> 30 #include "mastodon-cpp.hpp" 32 #include <mastodon-cpp/mastodon-cpp.hpp> 37 using std::uint_fast64_t; 38 using std::uint_fast16_t; 39 using std::chrono::system_clock; 134 typedef std::map<Easy::notification_type, bool> alertmap; 168 explicit Link( const string &link_header); 175 uint_fast64_t next() const; 182 uint_fast64_t max_id() const; 189 uint_fast64_t prev() const; 214 explicit Easy( const string &instance, const string &access_token); 236 static const std::vector<stream_event> 264 static const string strtime_utc( const system_clock::time_point &timepoint, 265 const string &format); 274 static const string strtime_local( const system_clock::time_point &timepoint, 275 const string &format); 311 uint_fast16_t &error, const uint_fast16_t limit = 20, 312 const uint_fast64_t since_id = 0, const uint_fast64_t max_id = 0); 329 explicit Entity( const string &json); 361 virtual bool valid() const = 0; 368 const string error() const; 407 const Json::Value get( const string &key) const; 414 const string get_string( const string &key) const; 421 uint_fast64_t get_uint64( const string &key) const; 436 bool get_bool( const string &key) const; 443 const system_clock::time_point get_time_point( const string &key) const; 451 const std::vector<string> get_vector( const string &key) const; 458 void set( const string &key, const Json::Value &value); 460 std::uint_fast64_t stouint64( const string &str) const; 471 bool check_valid( const std::vector<string> &attributes) const; 475 mutable bool _was_set; 479 inline static const string strtime 480 ( const system_clock::time_point &timepoint, 481 const string &format, const bool &utc); 485 #endif // MASTODON_EASY_CPP_HPP Class for the Mastodon API. Definition: mastodon-cpp.hpp:77
+ 17 #ifndef MASTODON_EASY_CPP_HPP 18 #define MASTODON_EASY_CPP_HPP 26 #include <jsoncpp/json/json.h> 30 #include "mastodon-cpp.hpp" 32 #include <mastodon-cpp/mastodon-cpp.hpp> 37 using std::uint_fast64_t; 38 using std::uint_fast16_t; 39 using std::chrono::system_clock; 134 typedef std::map<Easy::notification_type, bool> alertmap; 168 explicit Link( const string &link_header); 175 const string next() const; 182 const string max_id() const; 189 const string prev() const; 214 explicit Easy( const string &instance, const string &access_token); 236 static const std::vector<stream_event> 264 static const string strtime_utc( const system_clock::time_point &timepoint, 265 const string &format); 274 static const string strtime_local( const system_clock::time_point &timepoint, 275 const string &format); 311 uint_fast16_t &error, const uint_fast16_t limit = 20, 312 const string since_id = 0, const string max_id = 0); 329 explicit Entity( const string &json); 361 virtual bool valid() const = 0; 368 const string error() const; 407 const Json::Value get( const string &key) const; 414 const string get_string( const string &key) const; 421 uint_fast64_t get_uint64( const string &key) const; 436 bool get_bool( const string &key) const; 443 const system_clock::time_point get_time_point( const string &key) const; 451 const std::vector<string> get_vector( const string &key) const; 458 void set( const string &key, const Json::Value &value); 460 std::uint_fast64_t stouint64( const string &str) const; 471 bool check_valid( const std::vector<string> &attributes) const; 475 mutable bool _was_set; 479 inline static const string strtime 480 ( const system_clock::time_point &timepoint, 481 const string &format, const bool &utc); 485 #endif // MASTODON_EASY_CPP_HPP Class for the Mastodon API. Definition: mastodon-cpp.hpp:77
static const string strtime_utc(const system_clock::time_point &timepoint, const string &format) Converts a time_point to a string. Definition: easy.cpp:85
Class to hold tags. Definition: tag.hpp:44
- uint_fast64_t next() const Returns max_id. Definition: easy.cpp:136
Link(const string &link_header) Definition: easy.cpp:118
+ const string since_id() const Returns since_id. Definition: easy.cpp:151
Entity() Constructs an empty Entity object. Definition: entity.cpp:65
Class to hold the Link-header. Definition: easy.hpp:160
Class to hold notifications. Definition: notification.hpp:48
- uint_fast64_t prev() const Returns since_id. Definition: easy.cpp:146
Class to hold attachments. Definition: attachment.hpp:44
Class to hold cards. Definition: card.hpp:42
card_type Describes the card type. Definition: easy.hpp:97
Child of Mastodon::API with abstract methods. Definition: easy.hpp:48
- uint_fast64_t since_id() const Returns since_id. Definition: easy.cpp:151
- uint_fast64_t max_id() const Returns max_id. Definition: easy.cpp:141
Class to hold instances. Definition: instance.hpp:45
double get_double(const string &key) const Returns the value of key as double. Definition: entity.cpp:162
virtual bool valid() const =0 Returns true if the Entity holds valid data.
- Class to hold push subscriptions. Definition: pushsubscription.hpp:43
+ Class to hold push subscriptions. Definition: pushsubscription.hpp:42
const Status send_post(const Status &status, uint_fast16_t &error) Sends a toot. Definition: simple_calls.cpp:31
static const std::vector< string > json_array_to_vector(const string &json) Turns a JSON array into a vector of strings. Definition: easy.cpp:31
Easy(const string &instance, const string &access_token) Constructs a new Easy object. Definition: easy.cpp:27
@@ -73,12 +70,16 @@ $(function() {
attachment_type Describes the attachment type. Definition: easy.hpp:83
bool was_set() const Returns true if the last requested value was set, false if it was unset. Definition: entity.cpp:88
notification_type Describes the notification type. Definition: easy.hpp:111
+ const string prev() const Returns since_id. Definition: easy.cpp:146
+ const vector< Notification > get_notifications(uint_fast16_t &error, const uint_fast16_t limit=20, const string since_id=0, const string max_id=0) Gets notifications. Definition: simple_calls.cpp:141
const Json::Value to_object() const Returns the JSON object of the Entity. Definition: entity.cpp:60
Class to hold mentions. Definition: mention.hpp:43
std::map< Easy::notification_type, bool > alertmap Map of 'notification type' and 'push is requested or not'. Definition: easy.hpp:134
- Class to hold reports. Definition: report.hpp:42
+ Class to hold reports. Definition: report.hpp:41
static const string strtime_local(const system_clock::time_point &timepoint, const string &format) See strtime_utc. Definition: easy.cpp:91
+ const string max_id() const Returns max_id. Definition: easy.cpp:141
event_type Describes the event type. Definition: easy.hpp:56
+ const string next() const Returns max_id. Definition: easy.cpp:136
uint_fast64_t get_uint64(const string &key) const Returns the value of key as std::uint_fast64_t. Definition: entity.cpp:148
bool check_valid(const std::vector< string > &attributes) const Checks if an Entity is valid. Definition: entity.cpp:69
Class to hold statuses. Definition: status.hpp:59
@@ -100,7 +101,6 @@ $(function() {
const std::vector< string > get_vector(const string &key) const Returns the value of key as vector. Definition: entity.cpp:210
const Link get_link() const Gets the links from the last answer. Definition: easy.cpp:80
Class to hold applications. Definition: application.hpp:40
- const vector< Notification > get_notifications(uint_fast16_t &error, const uint_fast16_t limit=20, const uint_fast64_t since_id=0, const uint_fast64_t max_id=0) Gets notifications. Definition: simple_calls.cpp:141
std::pair< event_type, string > stream_event Used for stream events. Definition: easy.hpp:125
diff --git a/docs/emoji_8hpp_source.html b/docs/emoji_8hpp_source.html
index c6fd687..970eb9c 100644
--- a/docs/emoji_8hpp_source.html
+++ b/docs/emoji_8hpp_source.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example01_dump_json_8cpp-example.html b/docs/example01_dump_json_8cpp-example.html
index 3dba947..27710f3 100644
--- a/docs/example01_dump_json_8cpp-example.html
+++ b/docs/example01_dump_json_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example02_parse_account_8cpp-example.html b/docs/example02_parse_account_8cpp-example.html
index 8478598..d26172b 100644
--- a/docs/example02_parse_account_8cpp-example.html
+++ b/docs/example02_parse_account_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example03_mastocron_8cpp-example.html b/docs/example03_mastocron_8cpp-example.html
index 8bc240c..c5fa9ec 100644
--- a/docs/example03_mastocron_8cpp-example.html
+++ b/docs/example03_mastocron_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example04_update_credentials_8cpp-example.html b/docs/example04_update_credentials_8cpp-example.html
index 625e8d7..665e431 100644
--- a/docs/example04_update_credentials_8cpp-example.html
+++ b/docs/example04_update_credentials_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example05_follow_unfollow_8cpp-example.html b/docs/example05_follow_unfollow_8cpp-example.html
index 644618d..64f19ed 100644
--- a/docs/example05_follow_unfollow_8cpp-example.html
+++ b/docs/example05_follow_unfollow_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example06_toot_delete-toot_8cpp-example.html b/docs/example06_toot_delete-toot_8cpp-example.html
index a8c2713..f0b8d4e 100644
--- a/docs/example06_toot_delete-toot_8cpp-example.html
+++ b/docs/example06_toot_delete-toot_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example07_register_app_8cpp-example.html b/docs/example07_register_app_8cpp-example.html
index 72212f7..8f50c0e 100644
--- a/docs/example07_register_app_8cpp-example.html
+++ b/docs/example07_register_app_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example08_rate_limiting_8cpp-example.html b/docs/example08_rate_limiting_8cpp-example.html
index f527177..2416106 100644
--- a/docs/example08_rate_limiting_8cpp-example.html
+++ b/docs/example08_rate_limiting_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example09_streaming_api_8cpp-example.html b/docs/example09_streaming_api_8cpp-example.html
index f090c20..178926b 100644
--- a/docs/example09_streaming_api_8cpp-example.html
+++ b/docs/example09_streaming_api_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example10_simplify_8cpp-example.html b/docs/example10_simplify_8cpp-example.html
index 7d7f021..947f265 100644
--- a/docs/example10_simplify_8cpp-example.html
+++ b/docs/example10_simplify_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example11_post_media_8cpp-example.html b/docs/example11_post_media_8cpp-example.html
index 30dccca..6485f1b 100644
--- a/docs/example11_post_media_8cpp-example.html
+++ b/docs/example11_post_media_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
diff --git a/docs/example12_easy_laststatus_8cpp-example.html b/docs/example12_easy_laststatus_8cpp-example.html
index e2217d5..41cdd33 100644
--- a/docs/example12_easy_laststatus_8cpp-example.html
+++ b/docs/example12_easy_laststatus_8cpp-example.html
@@ -19,7 +19,7 @@
mastodon-cpp
- 0.21.0
+ 0.30.0
|
@@ -43,7 +43,7 @@ $(function() {
example12_easy_laststatus.cpp
- #ifndef WITHOUT_EASY #include <iostream> #include <string> #include <cstdint> #ifdef MASTODON_CPP #include "mastodon-cpp.hpp" #include "easy/all.hpp" #else #include <mastodon-cpp/mastodon-cpp.hpp> #include <mastodon-cpp/easy/all.hpp> #endif using std::cout; int main(int argc, char *argv[]) { if (argc < 3) { std::cerr << "usage: " << argv[0] << " <instance> <access token>\n"; return 1; } Easy masto(argv[1], argv[2]); std::string answer; std::uint16_t ret; ret = masto.get(API::v1::accounts_verify_credentials, answer); if (ret == 0) { Easy::Account acc(answer); ret = masto.get(API::v1::accounts_id_statuses, { { "id", { std::to_string(acc.id()) } }, { "limit", { "1" } } }, answer); if (ret == 0) { Easy::Status status(answer); if (status.valid()) { if (!status.language().empty()) cout << "Language: " << status.language() << '\n'; if (!status.content().empty()) cout << "Content: " << status.content().substr(0, 200) << "…\n"; if (!status.application().name().empty()) cout << "Application used: " << status.application().name() << '\n'; cout << "ID: " << status.id() << '\n'; string acct; string url; std::vector<Easy::Attachment> attachments; std::vector<Easy::Tag> tags; if (status.reblog().valid()) { cout << "Original ID: " << status.reblog().id() << '\n'; acct = status.reblog().account().acct(); url = status.reblog().account().url(); attachments = status.reblog().media_attachments(); tags = status.reblog().tags(); } else { acct = status.account().acct(); url = status.account().url(); attachments = status.media_attachments(); tags = status.tags(); } cout << "From: " << acct << " "; cout << "(" << url << ")\n"; for (const Easy::Attachment &attachment : attachments) { cout << "Attachment: " << attachment.text_url() << " (" << attachment.size() << ")\n"; } for (const Easy::Tag &tag : tags) { cout << "Hashtag: #" << tag.name() << " (" << tag.url() << ")\n"; } } return 0; } } std::cout << answer << '\n'; std::cerr << "Error code: " << ret << '\n'; return ret; } #else #include <cstdio> int main() { printf("mastodon-cpp was compiled without Easy support.\n"); return 255; } #endif // WITHOUT_EASY
+#ifndef WITHOUT_EASY #include <iostream> #include <string> #include <cstdint> #ifdef MASTODON_CPP #include "mastodon-cpp.hpp" #include "easy/all.hpp" #else #include <mastodon-cpp/mastodon-cpp.hpp> #include <mastodon-cpp/easy/all.hpp> #endif using std::cout; int main(int argc, char *argv[]) { if (argc < 3) { std::cerr << "usage: " << argv[0] << " <instance> <access token>\n"; return 1; } Easy masto(argv[1], argv[2]); std::string answer; std::uint16_t ret; ret = masto.get(API::v1::accounts_verify_credentials, answer); if (ret == 0) { Easy::Account acc(answer); ret = masto.get(API::v1::accounts_id_statuses, { { "id", { acc.id() } }, { "limit", { "1" } } }, answer); if (ret == 0) { Easy::Status status(answer); if (status.valid()) { if (!status.language().empty()) cout << "Language: " << status.language() << '\n'; if (!status.content().empty()) cout << "Content: " << status.content().substr(0, 200) << "…\n"; if (!status.application().name().empty()) cout << "Application used: " << status.application().name() << '\n'; cout << "ID: " << status.id() << '\n'; string acct; string url; std::vector<Easy::Attachment> attachments; std::vector<Easy::Tag> tags; if (status.reblog().valid()) { cout << "Original ID: " << status.reblog().id() << '\n'; acct = status.reblog().account().acct(); url = status.reblog().account().url(); attachments = status.reblog().media_attachments(); tags = status.reblog().tags(); } else { acct = status.account().acct(); url = status.account().url(); attachments = status.media_attachments(); tags = status.tags(); } cout << "From: " << acct << " "; cout << "(" << url << ")\n"; for (const Easy::Attachment &attachment : attachments) { cout << "Attachment: " << attachment.text_url() << " (" << attachment.size() << ")\n"; } for (const Easy::Tag &tag : tags) { cout << "Hashtag: #" << tag.name() << " (" << tag.url() << ")\n"; } } return 0; } } std::cout << answer << '\n'; std::cerr << "Error code: " << ret << '\n'; return ret; } #else #include <cstdio> int main() { printf("mastodon-cpp was compiled without Easy support.\n"); return 255; } #endif // WITHOUT_EASY
| | | | | | | | | |