30 #ifndef GOOGLE_ANALYTICS_API_ACCOUNT_TICKET_H_ 31 #define GOOGLE_ANALYTICS_API_ACCOUNT_TICKET_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/analytics_api/account.h" 39 #include "google/analytics_api/profile.h" 40 #include "google/analytics_api/webproperty.h" 90 return StringPiece(
"google_analytics_api::AccountTicket");
99 return Storage().isMember(
"account");
106 MutableStorage()->removeMember(
"account");
113 const Account get_account()
const;
130 return Storage().isMember(
"id");
137 MutableStorage()->removeMember(
"id");
145 const Json::Value& v = Storage(
"id");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
158 *MutableStorage(
"id") = value.data();
167 return Storage().isMember(
"kind");
174 MutableStorage()->removeMember(
"kind");
182 const Json::Value& v = Storage(
"kind");
183 if (v == Json::Value::null)
return StringPiece(
"");
184 return StringPiece(v.asCString());
195 *MutableStorage(
"kind") = value.data();
204 return Storage().isMember(
"profile");
211 MutableStorage()->removeMember(
"profile");
218 const Profile get_profile()
const;
235 return Storage().isMember(
"redirectUri");
242 MutableStorage()->removeMember(
"redirectUri");
250 const Json::Value& v = Storage(
"redirectUri");
251 if (v == Json::Value::null)
return StringPiece(
"");
252 return StringPiece(v.asCString());
264 *MutableStorage(
"redirectUri") = value.data();
273 return Storage().isMember(
"webproperty");
280 MutableStorage()->removeMember(
"webproperty");
303 #endif // GOOGLE_ANALYTICS_API_ACCOUNT_TICKET_H_ void clear_id()
Definition: account_ticket.h:136
bool has_account() const
Definition: account_ticket.h:98
void set_redirect_uri(const StringPiece &value)
Definition: account_ticket.h:263
Definition: webproperty.h:52
bool has_kind() const
Definition: account_ticket.h:166
void set_kind(const StringPiece &value)
Definition: account_ticket.h:194
void clear_webproperty()
Definition: account_ticket.h:279
void set_id(const StringPiece &value)
Definition: account_ticket.h:157
bool has_redirect_uri() const
Definition: account_ticket.h:234
const StringPiece get_id() const
Definition: account_ticket.h:144
bool has_id() const
Definition: account_ticket.h:129
Definition: account.cc:41
const StringPiece get_redirect_uri() const
Definition: account_ticket.h:249
void clear_kind()
Definition: account_ticket.h:173
void clear_redirect_uri()
Definition: account_ticket.h:241
void clear_account()
Definition: account_ticket.h:105
const StringPiece get_kind() const
Definition: account_ticket.h:181
bool has_profile() const
Definition: account_ticket.h:203
Definition: account_ticket.h:56
const StringPiece GetTypeName() const
Definition: account_ticket.h:89
void clear_profile()
Definition: account_ticket.h:210
bool has_webproperty() const
Definition: account_ticket.h:272