24 lines
628 B
C++
24 lines
628 B
C++
#include <iostream>
|
|
|
|
#include "cocoatweet/api/favorite/favorite.h"
|
|
#include "cocoatweet/api/favorite/create.h"
|
|
#include "cocoatweet/api/favorite/destroy.h"
|
|
|
|
namespace CocoaTweet::API::Favorites {
|
|
Favorite::Favorite(std::shared_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
|
oauth_ = _oauth;
|
|
}
|
|
|
|
void Favorite::Create(const std::string& _id) const {
|
|
CocoaTweet::API::Favorites::Create create;
|
|
create.id(_id);
|
|
create.process(oauth_);
|
|
}
|
|
|
|
void Favorite::Destroy(const std::string& _id) const {
|
|
CocoaTweet::API::Favorites::Destroy destroy;
|
|
destroy.id(_id);
|
|
destroy.process(oauth_);
|
|
}
|
|
} // namespace CocoaTweet::API::Favorites
|