CocoaTweet
src
cocoatweet
api
model
user.h
Go to the documentation of this file.
1
#ifndef COCOATWEET_API_MODEL_USER_H_
2
#define COCOATWEET_API_MODEL_USER_H_
3
4
#include <string>
5
6
namespace
CocoaTweet::API::Model
{
7
9
class
User
final {
10
public
:
12
User
() =
default
;
13
15
User
(
const
User
&) =
default
;
16
19
User
(
const
std::string& _json) :
User
(
User
::
parse
(_json)) {}
20
24
static
User
parse
(
const
std::string& _json);
25
26
void
id
(
const
std::string& _id);
27
void
name
(
const
std::string& _name);
28
void
screenName
(
const
std::string& _screen);
29
void
location
(
const
std::string& _location);
30
void
url
(
const
std::string& _url);
31
void
description
(
const
std::string& _description);
32
void
protectedUser
(
const
bool
_protected);
33
void
follower
(
const
long
_follower);
34
void
follow
(
const
long
_follow);
35
void
listed
(
const
long
_listed);
36
void
favorite
(
const
long
_favorite);
37
void
createdAt
(
const
std::string& _created);
38
void
bannerUrl
(
const
std::string& _banner);
39
void
iconUrl
(
const
std::string& _icon);
40
41
const
std::string&
id
()
const
;
42
const
std::string&
name
()
const
;
43
const
std::string&
screenName
()
const
;
44
const
std::string&
location
()
const
;
45
const
std::string&
url
()
const
;
46
const
std::string&
description
()
const
;
47
bool
protectedUser
()
const
;
48
long
follower
()
const
;
49
long
follow
()
const
;
50
long
listed
()
const
;
51
long
favorite
()
const
;
52
const
std::string&
created
()
const
;
53
const
std::string&
bannerUrl
()
const
;
54
const
std::string&
icon
()
const
;
55
56
private
:
57
std::string id_;
58
std::string name_;
59
std::string screenName_;
60
std::string location_;
61
std::string url_;
62
std::string description_;
63
bool
protectedUser_;
64
long
follower_;
65
long
follow_;
66
long
listed_;
67
long
favorite_;
68
std::string createdAt_;
69
std::string bannerUrl_;
70
std::string iconUrl_;
71
};
72
}
// namespace CocoaTweet::API::Model
73
74
#endif
CocoaTweet::API::Model::User::icon
const std::string & icon() const
Definition:
user.cc:126
CocoaTweet::API::Model::User::follower
long follower() const
Definition:
user.cc:108
CocoaTweet::API::Model::User::createdAt
void createdAt(const std::string &_created)
Definition:
user.cc:76
CocoaTweet::API::Model::User::url
const std::string & url() const
Definition:
user.cc:99
CocoaTweet::API::Model::User::protectedUser
bool protectedUser() const
Definition:
user.cc:105
CocoaTweet::API::Model::User::created
const std::string & created() const
Definition:
user.cc:120
CocoaTweet::API::Model::User::description
const std::string & description() const
Definition:
user.cc:102
CocoaTweet::API::Model::User::listed
long listed() const
Definition:
user.cc:114
CocoaTweet::API::Model::User::User
User(const std::string &_json)
constructor for create object from json response
Definition:
user.h:19
CocoaTweet::API::Model::User::User
User()=default
constructor
CocoaTweet::API::Model::User::id
const std::string & id() const
Definition:
user.cc:86
CocoaTweet::API::Model::User::follow
long follow() const
Definition:
user.cc:111
CocoaTweet::API::Model
Definition:
mediaStore.cc:5
CocoaTweet::API::Model::User::location
const std::string & location() const
Definition:
user.cc:96
CocoaTweet::API::Model::User::favorite
long favorite() const
Definition:
user.cc:117
CocoaTweet::API::Model::User::iconUrl
void iconUrl(const std::string &_icon)
Definition:
user.cc:82
CocoaTweet::API::Model::User::name
const std::string & name() const
Definition:
user.cc:90
CocoaTweet::API::Model::User::bannerUrl
const std::string & bannerUrl() const
Definition:
user.cc:123
CocoaTweet::API::Model::User::parse
static User parse(const std::string &_json)
response parser for user object
Definition:
user.cc:5
CocoaTweet::API::Model::User::screenName
const std::string & screenName() const
Definition:
user.cc:93
CocoaTweet::API::Model::User
data class for tweet object
Definition:
user.h:9
Generated by
1.8.17