#include <memberships_duration.h>
◆ MembershipsDuration() [1/2]
| google_youtube_api::MembershipsDuration::MembershipsDuration |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ MembershipsDuration() [2/2]
| google_youtube_api::MembershipsDuration::MembershipsDuration |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ ~MembershipsDuration()
| google_youtube_api::MembershipsDuration::~MembershipsDuration |
( |
| ) |
|
|
virtual |
◆ clear_member_since()
| void google_youtube_api::MembershipsDuration::clear_member_since |
( |
| ) |
|
|
inline |
Clears the 'memberSince' attribute.
◆ clear_member_total_duration_months()
| void google_youtube_api::MembershipsDuration::clear_member_total_duration_months |
( |
| ) |
|
|
inline |
Clears the 'memberTotalDurationMonths' attribute.
◆ get_member_since()
| const StringPiece google_youtube_api::MembershipsDuration::get_member_since |
( |
| ) |
const |
|
inline |
Get the value of the 'memberSince' attribute.
◆ get_member_total_duration_months()
| int32 google_youtube_api::MembershipsDuration::get_member_total_duration_months |
( |
| ) |
const |
|
inline |
Get the value of the 'memberTotalDurationMonths' attribute.
◆ GetTypeName()
| const StringPiece google_youtube_api::MembershipsDuration::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_member_since()
| bool google_youtube_api::MembershipsDuration::has_member_since |
( |
| ) |
const |
|
inline |
Determine if the 'memberSince' attribute was set.
- Returns
- true if the '
memberSince' attribute was set.
◆ has_member_total_duration_months()
| bool google_youtube_api::MembershipsDuration::has_member_total_duration_months |
( |
| ) |
const |
|
inline |
Determine if the 'memberTotalDurationMonths' attribute was set.
- Returns
- true if the '
memberTotalDurationMonths' attribute was set.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_member_since()
| void google_youtube_api::MembershipsDuration::set_member_since |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'memberSince' attribute.
The date and time when the user became a continuous member across all levels.
- Parameters
-
◆ set_member_total_duration_months()
| void google_youtube_api::MembershipsDuration::set_member_total_duration_months |
( |
int32 |
value | ) |
|
|
inline |
Change the 'memberTotalDurationMonths' attribute.
The cumulative time the user has been a member across all levels in complete months (the time is rounded down to the nearest integer).
- Parameters
-
The documentation for this class was generated from the following files: