mirror of https://github.com/axmolengine/axmol.git
55 lines
918 B
C++
55 lines
918 B
C++
#include "ProtocolIAP.h"
|
|
|
|
namespace cocos2d { namespace plugin {
|
|
|
|
bool ProtocolIAP::m_bPaying = false;
|
|
|
|
ProtocolIAP::ProtocolIAP()
|
|
: m_pListener(NULL)
|
|
{
|
|
}
|
|
|
|
ProtocolIAP::~ProtocolIAP()
|
|
{
|
|
}
|
|
|
|
bool ProtocolIAP::init()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
void ProtocolIAP::configDeveloperInfo(TIAPDeveloperInfo devInfo)
|
|
{
|
|
}
|
|
|
|
void ProtocolIAP::payForProduct(TProductInfo info)
|
|
{
|
|
}
|
|
|
|
void ProtocolIAP::setResultListener(PayResultListener* pListener)
|
|
{
|
|
m_pListener = pListener;
|
|
}
|
|
|
|
void ProtocolIAP::onPayResult(PayResultCode ret, const char* msg)
|
|
{
|
|
m_bPaying = false;
|
|
if (m_pListener)
|
|
{
|
|
m_pListener->onPayResult(ret, msg, m_curInfo);
|
|
}
|
|
|
|
m_curInfo.clear();
|
|
}
|
|
|
|
const char* ProtocolIAP::getSDKVersion()
|
|
{
|
|
return "Subclass should override this interface";
|
|
}
|
|
|
|
void ProtocolIAP::setDebugMode(bool debug)
|
|
{
|
|
}
|
|
|
|
}} //namespace cocos2d { namespace plugin {
|