aboutsummaryrefslogtreecommitdiff
path: root/src/tw
diff options
context:
space:
mode:
authorAndy Wortman <ixineeringeverywhere@gmail.com>2017-12-01 01:49:28 -0800
committerAndy Wortman <ixineeringeverywhere@gmail.com>2017-12-01 01:49:28 -0800
commitf04ca74b2856bf4851b9e8b4166030eb8e959dc6 (patch)
tree9c5d6d3059a342eb8aa1a5d77797e8ed6a330fbe /src/tw
parentbbe0e891a7cbb0708e2689b8123bb65a6d8ac7e0 (diff)
show json for DM, since fleshing that out is nextish on the to-do
Diffstat (limited to 'src/tw')
-rw-r--r--src/tw/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tw/mod.rs b/src/tw/mod.rs
index 737286d..6dbc259 100644
--- a/src/tw/mod.rs
+++ b/src/tw/mod.rs
@@ -881,6 +881,7 @@ fn handle_twitter_twete(
tweeter: &mut TwitterCache,
display_info: &mut DisplayInfo,
_queryer: &mut ::Queryer) {
+ //display_info.recv(display::Infos::Text(vec![format!("{:?}", structure)]));
let twete_id = structure["id_str"].as_str().unwrap().to_string();
tweeter.cache_api_tweet(serde_json::Value::Object(structure));
display_info.recv(display::Infos::Tweet(TweetId::Twitter(twete_id)));
@@ -894,6 +895,7 @@ fn handle_twitter_dm(
display_info: &mut DisplayInfo,
_queryer: &mut ::Queryer) {
// show DM
+ display_info.recv(display::Infos::Text(vec![format!("{:?}", structure)]));
display_info.recv(display::Infos::DM(structure["direct_message"]["text"].as_str().unwrap().to_string()));
}