Sha256: f88064a1419f45b638f2a4470ab826885e10efad88734ce2fb7130dcd992470a

Contents?: true

Size: 1.91 KB

Versions: 17

Compression:

Stored size: 1.91 KB

Contents

#include "../../../wp8/rhoruntime/common/RhoConvertWP8.h"
#include "MethodResultImpl.h"

namespace rhoruntime {

CMethodResultImpl::CMethodResultImpl():
    oResult(new rho::apiGenerator::CMethodResult())
{
}

CMethodResultImpl::CMethodResultImpl(int64 native):
    oResult((rho::apiGenerator::CMethodResult*)native)
{
}

int64 CMethodResultImpl::getNative()
{
    return (int64)oResult;
}

bool CMethodResultImpl::hasCallback()
{
    return oResult->hasCallback();
}

void CMethodResultImpl::set(bool res)
{
    oResult->set(res);
}

void CMethodResultImpl::set(int64 res)
{
    oResult->set(res);
}

void CMethodResultImpl::set(int res)
{
    oResult->set(res);
}

void CMethodResultImpl::set(double res)
{
    oResult->set(res);
}

void CMethodResultImpl::set(Platform::String^ res)
{
    oResult->set(rho::common::convertStringWFromWP8(res));
}

void CMethodResultImpl::set(WFC::IVectorView<Platform::String^>^ res)
{
    oResult->set(rho::common::convertArrayFromWP8(res));
}

void CMethodResultImpl::set(WFC::IVectorView<WFC::IMapView<Platform::String^, Platform::String^>^>^ res)
{
    oResult->set(rho::common::convertArrayOfHashesFromWP8(res));
}

void CMethodResultImpl::set(WFC::IMapView<Platform::String^, Platform::String^>^ res)
{
    oResult->set(rho::common::convertHashFromWP8(res));
}

void CMethodResultImpl::set(WFC::IMapView<Platform::String^, WFC::IVectorView<Platform::String^>^>^ res)
{
    oResult->set(rho::common::convertHashOfArraysFromWP8(res));
}

void CMethodResultImpl::set(WFC::IMapView<Platform::String^, WFC::IMapView<Platform::String^, Platform::String^>^>^ res)
{
    oResult->set(rho::common::convertHashOfHashesFromWP8(res));
}

void CMethodResultImpl::setRubyCallback(Platform::String^ strCallback)
{
	oResult->setRubyCallback(rho::common::convertStringAFromWP8(strCallback));
}

Platform::String^ CMethodResultImpl::getRubyCallback()
{
	return rho::common::convertStringToWP8(oResult->getRubyCallback());
}

}

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-7.6.0 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-7.5.1 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-7.4.1 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-7.1.17 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-6.2.0 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-6.0.11 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-5.5.18 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-5.5.17 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-5.5.15 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-5.5.0.22 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-5.5.2 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-5.5.0.7 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-5.5.0.3 platform/shared/api_generator/wp8/MethodResultImpl.cpp
rhodes-5.5.0 platform/shared/api_generator/wp8/MethodResultImpl.cpp
tauplatform-1.0.3 platform/shared/api_generator/wp8/MethodResultImpl.cpp
tauplatform-1.0.2 platform/shared/api_generator/wp8/MethodResultImpl.cpp
tauplatform-1.0.1 platform/shared/api_generator/wp8/MethodResultImpl.cpp