String* SamiUserApi::loginUserWithCompletion(String* username, String* password, void (* success)(String*, SamiError*)) { client = new SamiApiClient(); client->success(&loginUserProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); queryParams->Add(new String("username"), username); queryParams->Add(new String("password"), password); String* mBody = null; String url(L"/user/login"); client->execute(SamiUserApi::getBasePath(), url, "GET", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
void CropForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs) { result r = E_SUCCESS; if(requestId == REQUEST_ID_DISPLAYIMAGE) { HashMap extraData; extraData.Construct(); String typeKey = L"type"; String typeVal = L"image"; String selectKey = L"selectionType"; String selectVal = L"single"; extraData.Add(&typeKey, &typeVal); extraData.Add(&selectKey, &selectVal); AppControl* pAc = AppManager::FindAppControlN(L"tizen.filemanager", L"http://tizen.org/appcontrol/operation/pick"); if (pAc) { result r = pAc->Start(null, null, &extraData, this); if(r != E_SUCCESS) AppLogException("Error launching appcontrol, %s", GetErrorMessage(r)); delete pAc; } } else if(requestId == REQUEST_ID_DISPLAYWEBIMAGE) { if(pArgs!= null && pArgs->GetCount()>0) { Bitmap* pBitmap = static_cast<Bitmap* >(pArgs->GetAt(0)); LoadWebImage(pBitmap); RequestRedraw(); } } }
SamiJobId* SamiVrpApi::postVrpWithCompletion(String* key, SamiRequest* body, void (* success)(SamiJobId*, SamiError*)) { client = new SamiApiClient(); client->success(&postVrpProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); queryParams->Add(new String("key"), key); String* mBody = null; if(body != null) { mBody = new String(body->asJson()); headerParams->Add(new String("Content-Type"), new String("application/json")); } String url(L"/optimize"); client->execute(SamiVrpApi::getBasePath(), url, "POST", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
SamiNAMeasureResponse* SamiPublicApi::getmeasureWithCompletion(String* accessToken, String* deviceId, String* scale, IList* type, String* moduleId, Integer* dateBegin, Integer* dateEnd, Integer* limit, Boolean* optimize, Boolean* realTime, void (* success)(SamiNAMeasureResponse*, SamiError*)) { client = new SamiApiClient(); client->success(&getmeasureProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); queryParams->Add(new String("access_token"), accessToken); queryParams->Add(new String("device_id"), deviceId); queryParams->Add(new String("module_id"), moduleId); queryParams->Add(new String("scale"), scale); int sz = type->GetCount(); for(int i = 0; i < sz; i++) { String itemAt = stringify(type->GetAt(i), "String*"); queryParams->Add(new String("type"), new String(itemAt)); } queryParams->Add(new String("date_begin"), dateBegin); queryParams->Add(new String("date_end"), dateEnd); queryParams->Add(new String("limit"), limit); queryParams->Add(new String("optimize"), optimize); queryParams->Add(new String("real_time"), realTime); String* mBody = null; String url(L"/api/getmeasure"); client->execute(SamiPublicApi::getBasePath(), url, "GET", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
void VKUServiceProxy::SeekAudio(int value) { result r = E_SUCCESS; HashMap *pMap = new HashMap(SingleObjectDeleter); pMap->Construct(); pMap->Add(new String(L"request"), new String(L"audio-seek")); pMap->Add(new String(L"seek"), new String(Integer::ToString(value))); r = SendMessage(pMap); delete pMap; }
void VKUServiceProxy::UnsubscribeNotifications(int userId) { result r = E_SUCCESS; HashMap *pMap = new HashMap(SingleObjectDeleter); pMap->Construct(); pMap->Add(new String("request"), new String("unsubscribe")); pMap->Add(new String(L"userid"), new String(Integer::ToString(userId))); r = SendMessage(pMap); delete pMap; }
SamiInline_response_200_29* SamiVoteApi::votesGetWithCompletion(String* clientId, Integer* userId, Integer* causeId, Integer* effectId, Integer* value, String* createdAt, String* updatedAt, Integer* limit, Integer* offset, String* sort, void (* success)(SamiInline_response_200_29*, SamiError*)) { client = new SamiApiClient(); client->success(&votesGetProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); queryParams->Add(new String("client_id"), clientId); queryParams->Add(new String("user_id"), userId); queryParams->Add(new String("cause_id"), causeId); queryParams->Add(new String("effect_id"), effectId); queryParams->Add(new String("value"), value); queryParams->Add(new String("created_at"), createdAt); queryParams->Add(new String("updated_at"), updatedAt); queryParams->Add(new String("limit"), limit); queryParams->Add(new String("offset"), offset); queryParams->Add(new String("sort"), sort); String* mBody = null; String url(L"/votes"); client->execute(SamiVoteApi::getBasePath(), url, "GET", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
void VKUServiceProxy::PlayAudio(const String & url) { currentUrl = url; result r = E_SUCCESS; HashMap *pMap = new HashMap(SingleObjectDeleter); pMap->Construct(); pMap->Add(new String(L"request"), new String(L"audio-play")); pMap->Add(new String(L"audio-url"), new String(url)); r = SendMessage(pMap); delete pMap; }
HashMap * User::parameterDictionary() { HashMap *parameters = new HashMap(SingleObjectDeleter); parameters->Construct(); parameters->Add(new String(kHTTPParamNameUserID), new Double(_id)); parameters->Add(new String(kHTTPParamNameUsername), new String(_username)); parameters->Add(new String(kHTTPParamNameEmail), new String(_email)); if (_dateCreated) { parameters->Add(new String(kHTTPParamNameDateCreated), _dateCreated->parameterDictionary()); } return parameters; }
SamiArticleresponse* SamiArticlesApi::findArticleByIDWithCompletion(String* vestorlyAuth, String* _id, void (* success)(SamiArticleresponse*, SamiError*)) { client = new SamiApiClient(); client->success(&findArticleByIDProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); queryParams->Add(new String("vestorly_auth"), vestorlyAuth); String* mBody = null; String url(L"/articles/{id}"); String s__id(L"{"); s__id.Append(L"id"); s__id.Append(L"}"); url.Replace(s__id, stringify(_id, L"String*")); client->execute(SamiArticlesApi::getBasePath(), url, "GET", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
SamiNewsletterSettings* SamiNewslettersettingsApi::findNewsletterSettingsWithCompletion(String* vestorlyAuth, void (* success)(SamiNewsletterSettings*, SamiError*)) { client = new SamiApiClient(); client->success(&findNewsletterSettingsProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); queryParams->Add(new String("vestorly_auth"), vestorlyAuth); String* mBody = null; String url(L"/newsletter_settings"); client->execute(SamiNewslettersettingsApi::getBasePath(), url, "GET", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
IList* SamiPriceApi::priceGetByTickerWithCompletion(String* apikey, String* ticker, void (* success)(IList*, SamiError*)) { client = new SamiApiClient(); client->success(&priceGetByTickerProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); queryParams->Add(new String("apikey"), apikey); String* mBody = null; String url(L"/Price/{ticker}"); String s_ticker(L"{"); s_ticker.Append(L"ticker"); s_ticker.Append(L"}"); url.Replace(s_ticker, stringify(ticker, L"String*")); client->execute(SamiPriceApi::getBasePath(), url, "GET", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
SamiOrder* SamiStoreApi::placeOrderWithCompletion(SamiOrder* body, void (* success)(SamiOrder*, SamiError*)) { client = new SamiApiClient(); client->success(&placeOrderProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); String* mBody = null; if(body != null) { mBody = new String(body->asJson()); headerParams->Add(new String("Content-Type"), new String("application/json")); } String url(L"/store/order"); client->execute(SamiStoreApi::getBasePath(), url, "POST", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
SamiInline_response_200_30* SamiVoteApi::votesPostWithCompletion(SamiVote* body, void (* success)(SamiInline_response_200_30*, SamiError*)) { client = new SamiApiClient(); client->success(&votesPostProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); String* mBody = null; if(body != null) { mBody = new String(body->asJson()); headerParams->Add(new String("Content-Type"), new String("application/json")); } String url(L"/votes"); client->execute(SamiVoteApi::getBasePath(), url, "POST", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
void VKUServiceProxy::ContactsSync() { result r = E_SUCCESS; HashMap *pMap = new HashMap(SingleObjectDeleter); pMap->Construct(); pMap->Add(new String("request"), new String("contacts-sync")); r = SendMessage(pMap); delete pMap; }
void VKUServiceProxy::PauseAudio() { result r = E_SUCCESS; HashMap *pMap = new HashMap(SingleObjectDeleter); pMap->Construct(); pMap->Add(new String(L"request"), new String(L"audio-pause")); r = SendMessage(pMap); delete pMap; }
SamiConversion* SamiConversionApi::jobsJobIdConversionsPostWithCompletion(SamiConversion* body, String* xOcToken, String* xOcApiKey, String* jobId, void (* success)(SamiConversion*, SamiError*)) { client = new SamiApiClient(); client->success(&jobsJobIdConversionsPostProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); headerParams->Add(new String("X-Oc-Token"), xOcToken); headerParams->Add(new String("X-Oc-Api-Key"), xOcApiKey); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); String* mBody = null; if(body != null) { mBody = new String(body->asJson()); headerParams->Add(new String("Content-Type"), new String("application/json")); } String url(L"/jobs/{job_id}/conversions"); String s_jobId(L"{"); s_jobId.Append(L"job_id"); s_jobId.Append(L"}"); url.Replace(s_jobId, stringify(jobId, L"String*")); client->execute(SamiConversionApi::getBasePath(), url, "POST", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
SamiNewslettersettingresponse* SamiNewslettersettingsApi::updateNewsletterSettingsByIDWithCompletion(String* _id, String* vestorlyAuth, SamiNewsletterSettingsInput* newsletterSetting, void (* success)(SamiNewslettersettingresponse*, SamiError*)) { client = new SamiApiClient(); client->success(&updateNewsletterSettingsByIDProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); queryParams->Add(new String("vestorly_auth"), vestorlyAuth); String* mBody = null; if(newsletterSetting != null) { mBody = new String(newsletterSetting->asJson()); headerParams->Add(new String("Content-Type"), new String("application/json")); } String url(L"/newsletter_settings/{id}"); String s__id(L"{"); s__id.Append(L"id"); s__id.Append(L"}"); url.Replace(s__id, stringify(_id, L"String*")); client->execute(SamiNewslettersettingsApi::getBasePath(), url, "PUT", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
SamiInputFile* SamiInputApi::jobsJobIdInputFileIdDeleteWithCompletion(String* xOcToken, String* xOcApiKey, String* jobId, String* fileId, void (* success)(SamiInputFile*, SamiError*)) { client = new SamiApiClient(); client->success(&jobsJobIdInputFileIdDeleteProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); headerParams->Add(new String("X-Oc-Token"), xOcToken); headerParams->Add(new String("X-Oc-Api-Key"), xOcApiKey); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); String* mBody = null; String url(L"/jobs/{job_id}/input/{file_id}"); String s_jobId(L"{"); s_jobId.Append(L"job_id"); s_jobId.Append(L"}"); url.Replace(s_jobId, stringify(jobId, L"String*")); String s_fileId(L"{"); s_fileId.Append(L"file_id"); s_fileId.Append(L"}"); url.Replace(s_fileId, stringify(fileId, L"String*")); client->execute(SamiInputApi::getBasePath(), url, "DELETE", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
SamiArticles* SamiArticlesApi::findArticlesWithCompletion(String* vestorlyAuth, Integer* limit, String* textQuery, String* sortDirection, String* sortBy, void (* success)(SamiArticles*, SamiError*)) { client = new SamiApiClient(); client->success(&findArticlesProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); queryParams->Add(new String("vestorly_auth"), vestorlyAuth); queryParams->Add(new String("limit"), limit); queryParams->Add(new String("text_query"), textQuery); queryParams->Add(new String("sort_direction"), sortDirection); queryParams->Add(new String("sort_by"), sortBy); String* mBody = null; String url(L"/articles"); client->execute(SamiArticlesApi::getBasePath(), url, "GET", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
void ProjectGiraffeTab4::choosePhoto(void) { AppLog("choose photo from library"); AppControl* appControl = AppManager::FindAppControlN(L"tizen.filemanager", L"http://tizen.org/appcontrol/operation/pick"); HashMap extraData; extraData.Construct(); String selectKey = L"selectionType"; String selectVal = L"single"; extraData.Add(&selectKey, &selectVal); String typeKey = L"type"; String typeVal = L"image"; extraData.Add(&typeKey, &typeVal); if (appControl) { appControl->Start(null, null, &extraData, this); delete appControl; } }
String* SamiCloudCacheApi::setWithCompletion(String* appId, String* cacheName, String* dataKey, SamiCacheRequest* body, void (* success)(String*, SamiError*)) { client = new SamiApiClient(); client->success(&setProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); String* mBody = null; if(body != null) { mBody = new String(body->asJson()); headerParams->Add(new String("Content-Type"), new String("application/json")); } String url(L"cache/{app_id}/{cache_name}/{data_key}"); String s_appId(L"{"); s_appId.Append(L"app_id"); s_appId.Append(L"}"); url.Replace(s_appId, stringify(appId, L"String*")); String s_cacheName(L"{"); s_cacheName.Append(L"cache_name"); s_cacheName.Append(L"}"); url.Replace(s_cacheName, stringify(cacheName, L"String*")); String s_dataKey(L"{"); s_dataKey.Append(L"data_key"); s_dataKey.Append(L"}"); url.Replace(s_dataKey, stringify(dataKey, L"String*")); client->execute(SamiCloudCacheApi::getBasePath(), url, "PUT", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
void ProjectGiraffeTab4::takePhoto(void) { AppLog("take photo with camera"); AppControl* appControl = AppManager::FindAppControlN(L"tizen.camera", L"http://tizen.org/appcontrol/operation/createcontent"); HashMap extraData; extraData.Construct(); String typeKey = L"type"; String typeVal = L"camera"; extraData.Add(&typeKey, &typeVal); if (appControl) { appControl->Start(null, null, &extraData, this); delete appControl; } }
SamiCloudObject* SamiCloudObjectApi::deleteWithCompletion(String* appId, String* tableName, SamiCloudObjectSaveRequest* body, void (* success)(SamiCloudObject*, SamiError*)) { client = new SamiApiClient(); client->success(&deleteProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); String* mBody = null; if(body != null) { mBody = new String(body->asJson()); headerParams->Add(new String("Content-Type"), new String("application/json")); } String url(L"data/{app_id}/{table_name}"); String s_appId(L"{"); s_appId.Append(L"app_id"); s_appId.Append(L"}"); url.Replace(s_appId, stringify(appId, L"String*")); String s_tableName(L"{"); s_tableName.Append(L"table_name"); s_tableName.Append(L"}"); url.Replace(s_tableName, stringify(tableName, L"String*")); client->execute(SamiCloudObjectApi::getBasePath(), url, "DELETE", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
void SamiUserApi::createUsersWithArrayInputWithCompletion(IList* body, void(*success)(SamiError*)) { client = new SamiApiClient(); client->success(&createUsersWithArrayInputProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); String* mBody = null; if(body != null) { mBody = new String(""); int sz = body->GetCount(); for(int i = 0; i < sz; i++) { SamiObject * obj = (SamiObject*)body->GetAt(i); String json = obj->asJson(); if(i > 0) mBody->Append(","); mBody->Append(json); } mBody->Append("]"); headerParams->Add(new String("Content-Type"), new String("application/json")); } String url(L"/user/createWithArray"); client->execute(SamiUserApi::getBasePath(), url, "POST", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); }
result VKUServiceProxy::Construct(const AppId& appId, const String& remotePortName) { result r = E_FAILURE; this->appId = appId; AppManager* pAppManager = AppManager::GetInstance(); TryReturn(pAppManager != null, E_FAILURE, "VKU : Fail to get AppManager instance."); AppLog("VKU : Checking service status for time out 5 sec..."); for (int i = 0; i < 5; ++i) { if (pAppManager->IsRunning(appId)) { AppLog("VKU : Service is ready"); break; } else { AppLog("VKU : Service is not ready. try to launch."); r = pAppManager->LaunchApplication(appId, null); TryReturn(!IsFailed(r), r, "VKU : [%s]", GetErrorMessage(r)); Thread::Sleep(CHECK_INTERVAL); } } TryReturn(pAppManager->IsRunning(appId), E_FAILURE, "VKU : The service is not working."); pLocalMessagePort = MessagePortManager::RequestLocalMessagePort(LOCAL_MESSAGE_PORT_NAME); TryReturn(pLocalMessagePort != null, E_FAILURE, "[E_FAILURE] Failed to get LocalMessagePort instance."); pLocalMessagePort->AddMessagePortListener(*this); pRemoteMessagePort = MessagePortManager::RequestRemoteMessagePort(appId, remotePortName); TryReturn(pRemoteMessagePort != null, E_FAILURE, "[E_FAILURE] Failed to get LocalMessagePort instance."); AppLog("LocalMessagePort(\"%ls\") is ready", pLocalMessagePort->GetName().GetPointer()); // send connect request HashMap *pMap = new HashMap(SingleObjectDeleter); pMap->Construct(); pMap->Add(new String(L"request"), new String(L"connect")); r = SendMessage(pMap); delete pMap; return E_SUCCESS; }
IList* SamiCloudCacheApi::getAllCacheWithCompletion(String* appId, SamiKeyBody* body, void (* success)(IList*, SamiError*)) { client = new SamiApiClient(); client->success(&getAllCacheProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); String* mBody = null; if(body != null) { mBody = new String(body->asJson()); headerParams->Add(new String("Content-Type"), new String("application/json")); } String url(L"cache/{app_id}"); String s_appId(L"{"); s_appId.Append(L"app_id"); s_appId.Append(L"}"); url.Replace(s_appId, stringify(appId, L"String*")); client->execute(SamiCloudCacheApi::getBasePath(), url, "POST", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
void SamiUserApi::updateUserWithCompletion(String* username, SamiUser* body, void(*success)(SamiError*)) { client = new SamiApiClient(); client->success(&updateUserProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); String* mBody = null; if(body != null) { mBody = new String(body->asJson()); headerParams->Add(new String("Content-Type"), new String("application/json")); } String url(L"/user/{username}"); String s_username(L"{"); s_username.Append(L"username"); s_username.Append(L"}"); url.Replace(s_username, stringify(username, L"String*")); client->execute(SamiUserApi::getBasePath(), url, "PUT", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); }
SamiInline_response_200_2* SamiVoteApi::votesIdPutWithCompletion(Integer* _id, SamiVote* body, void (* success)(SamiInline_response_200_2*, SamiError*)) { client = new SamiApiClient(); client->success(&votesIdPutProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); String* mBody = null; if(body != null) { mBody = new String(body->asJson()); headerParams->Add(new String("Content-Type"), new String("application/json")); } String url(L"/votes/{id}"); String s__id(L"{"); s__id.Append(L"id"); s__id.Append(L"}"); url.Replace(s__id, stringify(_id, L"Integer*")); client->execute(SamiVoteApi::getBasePath(), url, "PUT", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }
SamiInline_response_200_3* SamiConnectionApi::connectionsGetWithCompletion(Integer* userId, Integer* connectorId, String* connectStatus, String* connectError, String* updateRequestedAt, String* updateStatus, String* updateError, String* lastSuccessfulUpdatedAt, String* createdAt, String* updatedAt, Integer* limit, Integer* offset, String* sort, void (* success)(SamiInline_response_200_3*, SamiError*)) { client = new SamiApiClient(); client->success(&connectionsGetProcessor, (void(*)(void*, SamiError*))success); HashMap* headerParams = new HashMap(SingleObjectDeleter); headerParams->Construct(); HashMap* queryParams = new HashMap(SingleObjectDeleter); queryParams->Construct(); queryParams->Add(new String("user_id"), userId); queryParams->Add(new String("connector_id"), connectorId); queryParams->Add(new String("connect_status"), connectStatus); queryParams->Add(new String("connect_error"), connectError); queryParams->Add(new String("update_requested_at"), updateRequestedAt); queryParams->Add(new String("update_status"), updateStatus); queryParams->Add(new String("update_error"), updateError); queryParams->Add(new String("last_successful_updated_at"), lastSuccessfulUpdatedAt); queryParams->Add(new String("created_at"), createdAt); queryParams->Add(new String("updated_at"), updatedAt); queryParams->Add(new String("limit"), limit); queryParams->Add(new String("offset"), offset); queryParams->Add(new String("sort"), sort); String* mBody = null; String url(L"/connections"); client->execute(SamiConnectionApi::getBasePath(), url, "GET", (IMap*)queryParams, mBody, (IMap*)headerParams, null, L"application/json"); return null; }