From bc893794c5e7ec1a968c00a8538241278e8c8d34 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 6 Aug 2018 16:06:12 -0400 Subject: User objects now contain whether the user is protected --- src/user.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/user.cpp') diff --git a/src/user.cpp b/src/user.cpp index f9b02a1..d2fa592 100644 --- a/src/user.cpp +++ b/src/user.cpp @@ -4,7 +4,7 @@ #include "client.h" namespace twitter { - + user::user(std::string data) try : _valid(true) { @@ -12,6 +12,7 @@ namespace twitter { _id = json["id"].get(); _screen_name = json["screen_name"].get(); _name = json["name"].get(); + _protected = json["protected"].get(); } catch (const std::invalid_argument& error) { std::throw_with_nested(malformed_object("user", data)); -- cgit 1.4.1