Lines Matching refs:extraInfoJson
324 nlohmann::json extraInfoJson = nlohmann::json::parse(extraInfo, nullptr, false);
325 if (!extraInfoJson.is_discarded()) {
326 SaveExtraInfo(extraInfoJson, callerInfo, accountInfo);
355 nlohmann::json extraInfoJson = nlohmann::json::parse(extraInfo, nullptr, false);
356 if (!extraInfoJson.is_discarded()) {
357 SaveExtraInfo(extraInfoJson, callerInfo, accountInfo);
419 void DistributedSchedStub::SaveExtraInfo(const nlohmann::json& extraInfoJson, CallerInfo& callerInfo,
422 if (extraInfoJson.find(EXTRO_INFO_JSON_KEY_ACCESS_TOKEN) != extraInfoJson.end() &&
423 extraInfoJson[EXTRO_INFO_JSON_KEY_ACCESS_TOKEN].is_number_unsigned()) {
424 uint32_t accessToken = extraInfoJson[EXTRO_INFO_JSON_KEY_ACCESS_TOKEN];
429 if (extraInfoJson.find(DMS_VERSION_ID) != extraInfoJson.end() && extraInfoJson[DMS_VERSION_ID].is_string()) {
430 std::string dmsVersion = extraInfoJson[DMS_VERSION_ID];
431 callerInfo.extraInfoJson[DMS_VERSION_ID] = dmsVersion;
434 if (extraInfoJson.find(DMS_UID_SPEC_BUNDLE_NAME) != extraInfoJson.end() &&
435 extraInfoJson[DMS_UID_SPEC_BUNDLE_NAME].is_string()) {
436 std::string uidBundleName = extraInfoJson[DMS_UID_SPEC_BUNDLE_NAME];
437 callerInfo.extraInfoJson[DMS_UID_SPEC_BUNDLE_NAME] = uidBundleName;
440 if (extraInfoJson.find(Constants::EXTRO_INFO_JSON_KEY_ACCOUNT_ID) != extraInfoJson.end() &&
441 extraInfoJson[Constants::EXTRO_INFO_JSON_KEY_ACCOUNT_ID].is_string()) {
442 accountInfo.activeAccountId = extraInfoJson[Constants::EXTRO_INFO_JSON_KEY_ACCOUNT_ID];
444 if (extraInfoJson.find(Constants::EXTRO_INFO_JSON_KEY_USERID_ID) != extraInfoJson.end() &&
445 extraInfoJson[Constants::EXTRO_INFO_JSON_KEY_USERID_ID].is_number()) {
446 accountInfo.userId = extraInfoJson[Constants::EXTRO_INFO_JSON_KEY_USERID_ID];
451 void DistributedSchedStub::SaveSendResultExtraInfo(const nlohmann::json& extraInfoJson, CallerInfo& callerInfo,
454 if (extraInfoJson.find(Constants::EXTRO_INFO_JSON_KEY_ACCOUNT_ID) != extraInfoJson.end() &&
455 extraInfoJson[Constants::EXTRO_INFO_JSON_KEY_ACCOUNT_ID].is_string()) {
456 accountInfo.activeAccountId = extraInfoJson[Constants::EXTRO_INFO_JSON_KEY_ACCOUNT_ID];
458 if (extraInfoJson.find(Constants::EXTRO_INFO_JSON_KEY_USERID_ID) != extraInfoJson.end() &&
459 extraInfoJson[Constants::EXTRO_INFO_JSON_KEY_USERID_ID].is_number()) {
460 accountInfo.userId = extraInfoJson[Constants::EXTRO_INFO_JSON_KEY_USERID_ID];
463 if (extraInfoJson.find(Constants::EXTRO_INFO_JSON_KEY_CALLER_INFO_EX) != extraInfoJson.end() &&
464 extraInfoJson[Constants::EXTRO_INFO_JSON_KEY_CALLER_INFO_EX].is_string()) {
465 std::string callerExJsonStr = extraInfoJson[Constants::EXTRO_INFO_JSON_KEY_CALLER_INFO_EX];
469 callerInfo.extraInfoJson = nlohmann::json::parse(callerExJsonStr, nullptr, false);
507 nlohmann::json extraInfoJson = nlohmann::json::parse(extraInfo, nullptr, false);
508 if (!extraInfoJson.is_discarded()) {
509 SaveSendResultExtraInfo(extraInfoJson, callerInfo, accountInfo);
1353 nlohmann::json extraInfoJson = nlohmann::json::parse(extraInfo, nullptr, false);
1354 if (!extraInfoJson.is_discarded()) {
1355 SaveExtraInfo(extraInfoJson, callerInfo, accountInfo);
1527 nlohmann::json extraInfoJson = nlohmann::json::parse(extraInfo, nullptr, false);
1529 if (!extraInfoJson.is_discarded()) {
1530 SaveExtraInfo(extraInfoJson, callerInfo, accountInfo);
1531 if (extraInfoJson.find(EXTRO_INFO_JSON_KEY_REQUEST_CODE) != extraInfoJson.end() &&
1532 extraInfoJson[EXTRO_INFO_JSON_KEY_REQUEST_CODE].is_number_integer()) {
1533 requestCode = extraInfoJson[EXTRO_INFO_JSON_KEY_REQUEST_CODE];
1659 nlohmann::json extraInfoJson = nlohmann::json::parse(extraInfo, nullptr, false);
1660 if (!extraInfoJson.is_discarded() && extraInfoJson.find(EXTRO_INFO_JSON_KEY_ACCESS_TOKEN) != extraInfoJson.end() &&
1661 extraInfoJson[EXTRO_INFO_JSON_KEY_ACCESS_TOKEN].is_number_unsigned()) {
1662 uint32_t accessToken = extraInfoJson[EXTRO_INFO_JSON_KEY_ACCESS_TOKEN];