本文整理汇总了C++中JsonObject::Construct方法的典型用法代码示例。如果您正苦于以下问题:C++ JsonObject::Construct方法的具体用法?C++ JsonObject::Construct怎么用?C++ JsonObject::Construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JsonObject
的用法示例。
在下文中一共展示了JsonObject::Construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: JsonObject
JsonObject*
SamiPet::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pIdKey = new JsonString(L"id");
pJsonObject->Add(pIdKey, toJson(getPId(), "Long", ""));
JsonString *pCategoryKey = new JsonString(L"category");
pJsonObject->Add(pCategoryKey, toJson(getPCategory(), "SamiCategory", ""));
JsonString *pNameKey = new JsonString(L"name");
pJsonObject->Add(pNameKey, toJson(getPName(), "String", ""));
JsonString *pPhotoUrlsKey = new JsonString(L"photoUrls");
pJsonObject->Add(pPhotoUrlsKey, toJson(getPPhotoUrls(), "String", "array"));
JsonString *pTagsKey = new JsonString(L"tags");
pJsonObject->Add(pTagsKey, toJson(getPTags(), "SamiTag", "array"));
JsonString *pStatusKey = new JsonString(L"status");
pJsonObject->Add(pStatusKey, toJson(getPStatus(), "String", ""));
return pJsonObject;
}
示例2: JsonObject
JsonObject*
SamiUnitConversion::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pUnit_idKey = new JsonString(L"unit_id");
pJsonObject->Add(pUnit_idKey, toJson(getPUnitId(), "Integer", ""));
JsonString *pStep_numberKey = new JsonString(L"step_number");
pJsonObject->Add(pStep_numberKey, toJson(getPStepNumber(), "Boolean", ""));
JsonString *pOperationKey = new JsonString(L"operation");
pJsonObject->Add(pOperationKey, toJson(getPOperation(), "Boolean", ""));
JsonString *pValueKey = new JsonString(L"value");
pJsonObject->Add(pValueKey, toJson(getPValue(), "Float", ""));
JsonString *pCreated_atKey = new JsonString(L"created_at");
pJsonObject->Add(pCreated_atKey, toJson(getPCreatedAt(), "DateTime", ""));
JsonString *pUpdated_atKey = new JsonString(L"updated_at");
pJsonObject->Add(pUpdated_atKey, toJson(getPUpdatedAt(), "DateTime", ""));
return pJsonObject;
}
示例3: JsonObject
JsonObject*
SamiAccessToken::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pAccess_tokenKey = new JsonString(L"access_token");
pJsonObject->Add(pAccess_tokenKey, toJson(getPAccessToken(), "String", ""));
JsonString *pRefresh_tokenKey = new JsonString(L"refresh_token");
pJsonObject->Add(pRefresh_tokenKey, toJson(getPRefreshToken(), "String", ""));
JsonString *pExpire_inKey = new JsonString(L"expire_in");
pJsonObject->Add(pExpire_inKey, toJson(getPExpireIn(), "Integer", ""));
JsonString *pExpires_inKey = new JsonString(L"expires_in");
pJsonObject->Add(pExpires_inKey, toJson(getPExpiresIn(), "Integer", ""));
JsonString *pScopeKey = new JsonString(L"scope");
pJsonObject->Add(pScopeKey, toJson(getPScope(), "String", "array"));
return pJsonObject;
}
示例4: JsonObject
JsonObject*
SamiNewsletter::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *p_idKey = new JsonString(L"_id");
pJsonObject->Add(p_idKey, toJson(getPId(), "String", ""));
JsonString *pIs_sentKey = new JsonString(L"is_sent");
pJsonObject->Add(pIs_sentKey, toJson(getPIsSent(), "Boolean", ""));
JsonString *pIs_defaultKey = new JsonString(L"is_default");
pJsonObject->Add(pIs_defaultKey, toJson(getPIsDefault(), "Boolean", ""));
JsonString *pClick_countKey = new JsonString(L"click_count");
pJsonObject->Add(pClick_countKey, toJson(getPClickCount(), "Long", ""));
JsonString *pUnique_click_countKey = new JsonString(L"unique_click_count");
pJsonObject->Add(pUnique_click_countKey, toJson(getPUniqueClickCount(), "Long", ""));
JsonString *pTotal_click_countKey = new JsonString(L"total_click_count");
pJsonObject->Add(pTotal_click_countKey, toJson(getPTotalClickCount(), "Long", ""));
return pJsonObject;
}
示例5: JsonObject
JsonObject*
SamiShipment::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pIdKey = new JsonString(L"id");
pJsonObject->Add(pIdKey, toJson(getPId(), "String", ""));
JsonString *pNameKey = new JsonString(L"name");
pJsonObject->Add(pNameKey, toJson(getPName(), "String", ""));
JsonString *pPriorityKey = new JsonString(L"priority");
pJsonObject->Add(pPriorityKey, toJson(getPPriority(), "Integer", ""));
JsonString *pPickupKey = new JsonString(L"pickup");
pJsonObject->Add(pPickupKey, toJson(getPPickup(), "SamiStop", ""));
JsonString *pDeliveryKey = new JsonString(L"delivery");
pJsonObject->Add(pDeliveryKey, toJson(getPDelivery(), "SamiStop", ""));
JsonString *pSizeKey = new JsonString(L"size");
pJsonObject->Add(pSizeKey, toJson(getPSize(), "Integer", "array"));
JsonString *pRequired_skillsKey = new JsonString(L"required_skills");
pJsonObject->Add(pRequired_skillsKey, toJson(getPRequiredSkills(), "String", "array"));
JsonString *pAllowed_vehiclesKey = new JsonString(L"allowed_vehicles");
pJsonObject->Add(pAllowed_vehiclesKey, toJson(getPAllowedVehicles(), "String", "array"));
return pJsonObject;
}
示例6: JsonObject
JsonObject*
SamiCloudSearch::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pQueryKey = new JsonString(L"query");
pJsonObject->Add(pQueryKey, toJson(getPQuery(), "SamiFilterBody", ""));
JsonString *pSortKey = new JsonString(L"sort");
pJsonObject->Add(pSortKey, toJson(getPSort(), "String", "array"));
JsonString *pCollectionNameKey = new JsonString(L"collectionName");
pJsonObject->Add(pCollectionNameKey, toJson(getPCollectionName(), "String", ""));
JsonString *pKeyKey = new JsonString(L"key");
pJsonObject->Add(pKeyKey, toJson(getPKey(), "String", ""));
JsonString *pSkipKey = new JsonString(L"skip");
pJsonObject->Add(pSkipKey, toJson(getPSkip(), "Integer", ""));
JsonString *pLimitKey = new JsonString(L"limit");
pJsonObject->Add(pLimitKey, toJson(getPLimit(), "Integer", ""));
return pJsonObject;
}
示例7: JsonObject
JsonObject*
SamiCloudObject::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
return pJsonObject;
}
示例8: JsonObject
JsonObject*
SamiEvent::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *p_idKey = new JsonString(L"_id");
pJsonObject->Add(p_idKey, toJson(getPId(), "String", ""));
JsonString *pTypeKey = new JsonString(L"type");
pJsonObject->Add(pTypeKey, toJson(getPType(), "String", ""));
JsonString *pRefererKey = new JsonString(L"referer");
pJsonObject->Add(pRefererKey, toJson(getPReferer(), "String", ""));
JsonString *pOriginal_urlKey = new JsonString(L"original_url");
pJsonObject->Add(pOriginal_urlKey, toJson(getPOriginalUrl(), "String", ""));
JsonString *pOriginator_emailKey = new JsonString(L"originator_email");
pJsonObject->Add(pOriginator_emailKey, toJson(getPOriginatorEmail(), "String", ""));
JsonString *pSubject_emailKey = new JsonString(L"subject_email");
pJsonObject->Add(pSubject_emailKey, toJson(getPSubjectEmail(), "String", ""));
JsonString *pParent_event_idKey = new JsonString(L"parent_event_id");
pJsonObject->Add(pParent_event_idKey, toJson(getPParentEventId(), "String", ""));
JsonString *pOriginator_idKey = new JsonString(L"originator_id");
pJsonObject->Add(pOriginator_idKey, toJson(getPOriginatorId(), "String", ""));
JsonString *pAdvisor_idKey = new JsonString(L"advisor_id");
pJsonObject->Add(pAdvisor_idKey, toJson(getPAdvisorId(), "String", ""));
JsonString *pSubject_idKey = new JsonString(L"subject_id");
pJsonObject->Add(pSubject_idKey, toJson(getPSubjectId(), "String", ""));
JsonString *pEvent_contentKey = new JsonString(L"event_content");
pJsonObject->Add(pEvent_contentKey, toJson(getPEventContent(), "SamiEventContent", ""));
JsonString *pCreated_atKey = new JsonString(L"created_at");
pJsonObject->Add(pCreated_atKey, toJson(getPCreatedAt(), "String", ""));
return pJsonObject;
}
示例9: JsonObject
JsonObject*
SamiPostrequest::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pPostKey = new JsonString(L"post");
pJsonObject->Add(pPostKey, toJson(getPPost(), "SamiPostInput", ""));
return pJsonObject;
}
示例10: JsonObject
JsonObject*
SamiNASimpleAlgo::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pHigh_deadbandKey = new JsonString(L"high_deadband");
pJsonObject->Add(pHigh_deadbandKey, toJson(getPHighDeadband(), "Integer", ""));
return pJsonObject;
}
示例11: JsonObject
JsonObject*
SamiNewsletterSettingsInput::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pNewsletter_settingKey = new JsonString(L"newsletter_setting");
pJsonObject->Add(pNewsletter_settingKey, toJson(getPNewsletterSetting(), "SamiNewsletterSetting", ""));
return pJsonObject;
}
示例12: JsonObject
JsonObject*
SamiBoolQuery::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pBoolKey = new JsonString(L"bool");
pJsonObject->Add(pBoolKey, toJson(getPBool(), "SamiSearchQuery", ""));
return pJsonObject;
}
示例13: JsonObject
JsonObject*
SamiSources::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pSourcesKey = new JsonString(L"sources");
pJsonObject->Add(pSourcesKey, toJson(getPSources(), "SamiSource", "array"));
return pJsonObject;
}
示例14: JsonObject
JsonObject*
SamiShowcaseDatatypeDate::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pDateKey = new JsonString(L"date");
pJsonObject->Add(pDateKey, toJson(getPDate(), "DateTime", ""));
return pJsonObject;
}
示例15: JsonObject
JsonObject*
SamiMemberReports::asJsonObject() {
JsonObject *pJsonObject = new JsonObject();
pJsonObject->Construct();
JsonString *pMember_reportsKey = new JsonString(L"member_reports");
pJsonObject->Add(pMember_reportsKey, toJson(getPMemberReports(), "SamiMemberReport", "array"));
return pJsonObject;
}