androidenterprise  v1
Public Member Functions | Static Public Member Functions | List of all members
google_androidenterprise_api::WebAppIcon Class Reference

#include <web_app_icon.h>

Inheritance diagram for google_androidenterprise_api::WebAppIcon:

Public Member Functions

 WebAppIcon (const Json::Value &storage)
 
 WebAppIcon (Json::Value *storage)
 
virtual ~WebAppIcon ()
 
const StringPiece GetTypeName () const
 
bool has_image_data () const
 
void clear_image_data ()
 
const StringPiece get_image_data () const
 
void set_image_data (const StringPiece &value)
 

Static Public Member Functions

static WebAppIconNew ()
 

Detailed Description

Icon for a web app.

Constructor & Destructor Documentation

◆ WebAppIcon() [1/2]

google_androidenterprise_api::WebAppIcon::WebAppIcon ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ WebAppIcon() [2/2]

google_androidenterprise_api::WebAppIcon::WebAppIcon ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~WebAppIcon()

google_androidenterprise_api::WebAppIcon::~WebAppIcon ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_image_data()

void google_androidenterprise_api::WebAppIcon::clear_image_data ( )
inline

Clears the 'imageData' attribute.

◆ get_image_data()

const StringPiece google_androidenterprise_api::WebAppIcon::get_image_data ( ) const
inline

Get the value of the 'imageData' attribute.

◆ GetTypeName()

const StringPiece google_androidenterprise_api::WebAppIcon::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::WebAppIcon

◆ has_image_data()

bool google_androidenterprise_api::WebAppIcon::has_image_data ( ) const
inline

Determine if the 'imageData' attribute was set.

Returns
true if the 'imageData' attribute was set.

◆ New()

WebAppIcon * google_androidenterprise_api::WebAppIcon::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_image_data()

void google_androidenterprise_api::WebAppIcon::set_image_data ( const StringPiece &  value)
inline

Change the 'imageData' attribute.

The actual bytes of the image in a base64url encoded string (c.f. RFC4648, section 5 "Base 64 Encoding with URL and Filename Safe Alphabet").

  • The image type can be png or jpg.
  • The image should ideally be square.
  • The image should ideally have a size of 512x512.
Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: