pianod2
multisource multiuser scriptable networked music player
Public Member Functions | Private Attributes | List of all members
Pandora::RequestAddFeedback Class Reference

Pandora message: Provide feedback for a song that has played on a station. More...

#include <pandoramessages.h>

Inheritance diagram for Pandora::RequestAddFeedback:
Inheritance graph
[legend]
Collaboration diagram for Pandora::RequestAddFeedback:
Collaboration graph
[legend]

Public Member Functions

 RequestAddFeedback (Station *sta, const std::string &track_token, bool positive)
 
virtual void extractResponse (const Parsnip::Data &message) override
 Decode a response message, already converted to Parsnip Data, into some internal representation. More...
 
SongRating *const getFeedback () const
 
- Public Member Functions inherited from Pandora::Request
const std::string & url () const
 
bool debug () const
 
bool tlsEncrypt () const
 
bool blowfishEncrypt () const
 
Parsnip::DataretrieveRequestMessage ()
 Retrieve the Parsnip Data object with the request message. More...
 

Private Attributes

Retainer< Station * > station
 
Retainer< SongRating * > feedback
 

Additional Inherited Members

- Public Types inherited from Pandora::Request
using Option = RequestOption
 
- Protected Member Functions inherited from Pandora::Request
 Request (Source *const src, const char *ep, Option options=Option::NONE)
 RPC method name or REST API endpoint. More...
 
- Protected Attributes inherited from Pandora::Request
Source *const source
 
Parsnip::Data request_message
 

Detailed Description

Pandora message: Provide feedback for a song that has played on a station.

Constructor & Destructor Documentation

◆ RequestAddFeedback()

Pandora::RequestAddFeedback::RequestAddFeedback ( Station sta,
const std::string &  track_token,
bool  positive 
)
Here is the call graph for this function:

Member Function Documentation

◆ extractResponse()

void Pandora::RequestAddFeedback::extractResponse ( const Parsnip::Data message)
overridevirtual

Decode a response message, already converted to Parsnip Data, into some internal representation.

Parameters
messageThe message to be decoded.

Implements Pandora::Request.

◆ getFeedback()

SongRating* const Pandora::RequestAddFeedback::getFeedback ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ feedback

Retainer<SongRating *> Pandora::RequestAddFeedback::feedback
private

◆ station

Retainer<Station *> Pandora::RequestAddFeedback::station
private

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