File tree Expand file tree Collapse file tree 9 files changed +70
-2
lines changed Expand file tree Collapse file tree 9 files changed +70
-2
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,22 @@ BUILT_ASSUME_NONNULL_BEGIN
200200 */
201201- (void )removeHeaderForKey : (NSString *)headerKey ;
202202
203+ /* *
204+ Include the metadata for getting metadata content for the asset.
205+
206+ //Obj-C
207+ Stack *stack = [Contentstack stackWithAPIKey:@"API_KEY" accessToken:@"DELIVERY_TOKEN" environmentName:@"ENVIRONMENT"];
208+ Asset *asset = [stack asset];
209+ [asset includeMetadata];
210+
211+ //Swift
212+ var stack:Stack = Contentstack.stackWithAPIKey("API_KEY", accessToken:"DELIVERY_TOKEN", environmentName:@"ENVIRONMENT")
213+ var asset:Asset = stack.asset()
214+ asset.includeMetadata()
215+
216+ */
217+ -(void )includeMetadata ;
218+
203219/* *
204220 Retrieve the published content of the fallback locale entry if the entry is not localized in specified locale.
205221
Original file line number Diff line number Diff line change @@ -131,6 +131,10 @@ -(void)includeFallback {
131131 [self .postParamDictionary setObject: @" true" forKey: kCSIO_IncludeFallback ];
132132}
133133
134+ -(void )includeMetadata {
135+ [self .postParamDictionary setObject: @" true" forKey: kCSIO_IncludeMetadata ];
136+ }
137+
134138-(void )includeBranch {
135139 [self .postParamDictionary setObject: @" true" forKey: kCSIO_IncludeBranch ];
136140}
Original file line number Diff line number Diff line change @@ -105,6 +105,18 @@ typedef NS_ENUM(NSUInteger, OrderBy) {
105105 */
106106-(void )includeFallback ;
107107
108+ /* *
109+ Include the metadata for getting metadata content for the asset.
110+
111+ //Obj-C
112+ [assetLib includeMetadata];
113+
114+ //Swift
115+ assetLib.includeMetadata()
116+
117+ */
118+ -(void )includeMetadata ;
119+
108120/* *
109121 Retrieve the branch for the published content.
110122
Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ -(void)includeFallback {
8787 [self .postParamDictionary setObject: @" true" forKey: kCSIO_IncludeFallback ];
8888}
8989
90+ -(void )includeMetadata {
91+ [self .postParamDictionary setObject: @" true" forKey: kCSIO_IncludeMetadata ];
92+ }
93+
9094-(void )includeBranch {
9195 [self .postParamDictionary setObject: @" true" forKey: kCSIO_IncludeBranch ];
9296}
Original file line number Diff line number Diff line change @@ -355,14 +355,26 @@ BUILT_ASSUME_NONNULL_BEGIN
355355 Retrieve the published content of the fallback locale entry if the entry is not localized in specified locale.
356356
357357 //Obj-C
358- [entryObj includeContentType ];
358+ [entryObj includeFallback ];
359359
360360 //Swift
361- entryObj.includeContentType ()
361+ entryObj.includeFallback ()
362362
363363 */
364364-(void )includeFallback ;
365365
366+ /* *
367+ Include the metadata for getting metadata content for the entry.
368+
369+ //Obj-C
370+ [entryObj includeMetadata];
371+
372+ //Swift
373+ entryObj.includeMetadata()
374+
375+ */
376+ -(void )includeMetadata ;
377+
366378/* *
367379 Retrieve the branch for the published content.
368380
Original file line number Diff line number Diff line change @@ -244,6 +244,10 @@ -(void)includeFallback {
244244 [self .postParamDictionary setObject: @" true" forKey: kCSIO_IncludeFallback ];
245245}
246246
247+ -(void )includeMetadata {
248+ [self .postParamDictionary setObject: @" true" forKey: kCSIO_IncludeMetadata ];
249+ }
250+
247251-(void )includeBranch {
248252 [self .postParamDictionary setObject: @" true" forKey: kCSIO_IncludeBranch ];
249253}
Original file line number Diff line number Diff line change @@ -279,6 +279,17 @@ Provides only the number of entries with values matching the specified values fo
279279 */
280280-(void )includeFallback ;
281281
282+ /* *
283+ Include the metadata for getting metadata content for the entry.
284+
285+ //Obj-C
286+ [blogQuery includeMetadata];
287+
288+ //Swift
289+ blogQuery.includeMetadata()
290+
291+ */
292+ -(void )includeMetadata ;
282293/* *
283294 Retrieve the branch for the published content.
284295
Original file line number Diff line number Diff line change @@ -128,6 +128,10 @@ -(void)includeFallback {
128128 [self .queryDictionary setObject: @" true" forKey: kCSIO_IncludeFallback ];
129129}
130130
131+ -(void )includeMetadata {
132+ [self .queryDictionary setObject: @" true" forKey: kCSIO_IncludeMetadata ];
133+ }
134+
131135-(void )includeBranch {
132136 [self .queryDictionary setObject: @" true" forKey: kCSIO_IncludeBranch ];
133137}
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ @implementation CSIOConstants
6464NSString *const kCSIO_IncludeCount = @" include_count" ;
6565NSString *const kCSIO_IncludeUnpublished = @" include_unpublished" ;
6666NSString *const kCSIO_IncludeFallback = @" include_fallback" ;
67+ NSString *const kCSIO_IncludeMetadata = @" include_metadata" ;
6768NSString *const kCSIO_IncludeBranch = @" include_branch" ;
6869NSString *const kCSIO_IncludeEmbeddedItems = @" include_embedded_items" ;
6970
You can’t perform that action at this time.
0 commit comments