about summary refs log tree commit diff stats
path: root/src/tweet.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-06-12 10:26:36 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-06-12 10:26:36 -0400
commitc3cc76301d64320791f7097709ffcd36d7206266 (patch)
treeb9aa1cfcbdd9070ac928605fb67753a6406dec9d /src/tweet.cpp
parent9fdcbee29350846db7f136b023da64bb2e6a93f5 (diff)
downloadlibtwittercpp-c3cc76301d64320791f7097709ffcd36d7206266.tar.gz
libtwittercpp-c3cc76301d64320791f7097709ffcd36d7206266.tar.bz2
libtwittercpp-c3cc76301d64320791f7097709ffcd36d7206266.zip
Added method to Tweet to get URL
Diffstat (limited to 'src/tweet.cpp')
-rw-r--r--src/tweet.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tweet.cpp b/src/tweet.cpp index 2927018..193df6e 100644 --- a/src/tweet.cpp +++ b/src/tweet.cpp
@@ -126,6 +126,11 @@ namespace twitter {
126 return _mentions; 126 return _mentions;
127 } 127 }
128 128
129 std::string tweet::getURL() const
130 {
131 return "https://twitter.com/" + _author.getScreenName() + "/statuses/" + std::to_string(_id);
132 }
133
129 tweet::operator bool() const 134 tweet::operator bool() const
130 { 135 {
131 return _valid; 136 return _valid;