30 #ifndef GOOGLE_ANDROIDENTERPRISE_API_AUTHENTICATION_TOKEN_H_ 31 #define GOOGLE_ANDROIDENTERPRISE_API_AUTHENTICATION_TOKEN_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 85 return StringPiece(
"google_androidenterprise_api::AuthenticationToken");
94 return Storage().isMember(
"kind");
101 MutableStorage()->removeMember(
"kind");
109 const Json::Value& v = Storage(
"kind");
110 if (v == Json::Value::null)
return StringPiece(
"");
111 return StringPiece(v.asCString());
119 *MutableStorage(
"kind") = value.data();
128 return Storage().isMember(
"token");
135 MutableStorage()->removeMember(
"token");
143 const Json::Value& v = Storage(
"token");
144 if (v == Json::Value::null)
return StringPiece(
"");
145 return StringPiece(v.asCString());
158 *MutableStorage(
"token") = value.data();
165 #endif // GOOGLE_ANDROIDENTERPRISE_API_AUTHENTICATION_TOKEN_H_ void set_token(const StringPiece &value)
Definition: authentication_token.h:157
bool has_token() const
Definition: authentication_token.h:127
bool has_kind() const
Definition: authentication_token.h:93
const StringPiece get_token() const
Definition: authentication_token.h:142
Definition: authentication_token.h:51
void set_kind(const StringPiece &value)
Definition: authentication_token.h:118
const StringPiece get_kind() const
Definition: authentication_token.h:108
Definition: administrator.h:38
Definition: administrator.cc:40
const StringPiece GetTypeName() const
Definition: authentication_token.h:84
void clear_kind()
Definition: authentication_token.h:100
void clear_token()
Definition: authentication_token.h:134