summaryrefslogtreecommitdiffstats
path: root/src/mastodon_client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mastodon_client.rs')
-rw-r--r--src/mastodon_client.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mastodon_client.rs b/src/mastodon_client.rs
index e338e96..f65eda7 100644
--- a/src/mastodon_client.rs
+++ b/src/mastodon_client.rs
@@ -196,12 +196,16 @@ pub trait MastodonClient<H: HttpSend = HttpSender> {
fn new_status(&self, status: NewStatus) -> Result<Status> {
unimplemented!("This method was not implemented");
}
- /// GET /api/v1/timelines/public
- fn get_public_timeline(&self, local: bool) -> Result<Vec<Status>> {
+/// GET /api/v1/timelines/public?local=true
+ fn get_local_timeline(&self) -> Result<Page<Status, H>> {
+ unimplemented!("This method was not implemented");
+ }
+/// GET /api/v1/timelines/public?local=false
+ fn get_federated_timeline(&self) -> Result<Page<Status, H>> {
unimplemented!("This method was not implemented");
}
/// GET /api/v1/timelines/tag/:hashtag
- fn get_tagged_timeline(&self, hashtag: String, local: bool) -> Result<Vec<Status>> {
+ fn get_hashtag_timeline(&self, hashtag: &str, local: bool) -> Result<Page<Status, H>> {
unimplemented!("This method was not implemented");
}
/// GET /api/v1/accounts/:id/statuses