Index: src/Notification.cpp |
=================================================================== |
--- a/src/Notification.cpp |
+++ b/src/Notification.cpp |
@@ -77,6 +77,23 @@ |
return message; |
} |
+std::vector<std::string> Notification::GetLinks() const |
+{ |
+ std::vector<std::string> retValue; |
+ JsValuePtr jsLinks = GetProperty("links"); |
+ if (!jsLinks->IsArray()) |
+ { |
+ return retValue; |
+ } |
+ JsValueList urlLinksList = jsLinks->AsList(); |
+ for (JsValueList::const_iterator linkIterator = urlLinksList.begin(); |
+ linkIterator != urlLinksList.end(); ++linkIterator) |
+ { |
+ retValue.emplace_back((*linkIterator)->AsString()); |
Felix Dahlke
2015/02/02 14:40:48
C++11 again! :)
sergei
2015/02/02 14:51:28
Sorry, fixed.
|
+ } |
+ return retValue; |
+} |
+ |
void Notification::MarkAsShown() |
{ |
JsValueList params; |