GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — contentstack-ios/Contentstack/Taxonomy.h at master · contentstack/contentstack-ios

This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Expand file tree

/

Taxonomy.h

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
108 lines (82 loc) · 3.13 KB
/

Taxonomy.h

Copy path

File metadata and controls

108 lines (82 loc) · 3.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
//
// Taxonomy.h
// Contentstack
//
// Created by Vikram Kalta on 27/07/2024.
// Copyright © 2024 Contentstack. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Contentstack/ContentstackDefinitions.h>
@class Query;
BUILT_ASSUME_NONNULL_BEGIN
@interface Taxonomy : NSObject
- (instancetype)init UNAVAILABLE_ATTRIBUTE;
//MARK: - Manually set headers
/**---------------------------------------------------------------------------------------
* @name Manually set headers
* ---------------------------------------------------------------------------------------
*/
/**
Set a header for ContentType
//Obj-C
[contentTypeObj setHeader:@"MyValue" forKey:@"My-Custom-Header"];
//Swift
contentTypeObj.setHeader("MyValue", forKey: "My-Custom-Header")
@param headerValue The header key
@param headerKey The header value
*/
- (void)setHeader:(NSString *)headerValue forKey:(NSString *)headerKey;
/**
Set a header for ContentType
//Obj-C
[contentTypeObj addHeadersWithDictionary:@{@"My-Custom-Header": @"MyValue"}];
//Swift
contentTypeObj.addHeadersWithDictionary(["My-Custom-Header":"MyValue"])
@param headers The headers as dictionary which needs to be added to the application
*/
- (void)addHeadersWithDictionary:(NSDictionary<NSString *, NSString *> *)headers;
/**
Removes a header from this ContentType.
//Obj-C
[contentTypeObj removeHeaderForKey:@"My-Custom-Header"];
//Swift
contentTypeObj.removeHeaderForKey("My-Custom-Header")
@param headerKey The header key that needs to be removed
*/
- (void)removeHeaderForKey:(NSString *)headerKey;
//MARK: - Query
/**---------------------------------------------------------------------------------------
* @name Query
* ---------------------------------------------------------------------------------------
*/
/**
Represents a Query on 'ContentType' which can be executed to retrieve entries that pass the query condition
//Obj-C
Query *queryObj = [contentTypeObj query];
//Swift
var queryObj:Query = contentTypeObj.query()
@return Returns new Query instance
*/
- (Query*)query;
//MARK: - Schema
/**---------------------------------------------------------------------------------------
* @name ContentType Schema
* ---------------------------------------------------------------------------------------
*/
/**
Gets ContentType Schema defination.
//Obj-C
Taxonomy * taxonomy = [stack]
[contentType fetch:params completion:^(NSDictionary * _Nullable entries, NSError * _Nullable error) {
}];
//Swift
let taxonomy = stack.taxonomy("")
taxonomy.fetch(params, { (entries, error) in
})
@param completionBlock block to be called once operation is done.
*/
- (void)fetch:(NSDictionary<NSString *, id> * _Nullable)params completion:(void (^)(NSDictionary<NSString *, NSString *> *
BUILT_NULLABLE_P contentType,
NSError * BUILT_NULLABLE_P error))completionBlock;
@end
BUILT_ASSUME_NONNULL_END
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.