GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — contentstack-ios/Contentstack/Group.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/ Copy pathGroup.hMore file actions executable file ·187 lines (128 loc) · 5.25 KB / Copy pathGroup.hFile metadata and controlsexecutable file ·187 lines (128 loc) · 5.25 KB 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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 // // Group.h // contentstack // // Created by Priyanka Mistry on 29/11/16. // Copyright © 2016 Contentstack. All rights reserved. // #import <Foundation/Foundation.h> #import <Contentstack/ContentstackDefinitions.h> @class Asset; @class Entry; BUILT_ASSUME_NONNULL_BEGIN /* A Group is special type of field in Contentstack. The reason its named such is that its a set of fields grouped together. Each group field has its own schema and can contain sub-groups. */ @interface Group : NSObject /**--------------------------------------------------------------------------------------- * @name Properties * --------------------------------------------------------------------------------------- */ /** Gets the data for given property. //Assuming 'detailGroup' is a Group instance //Obj-C id object = [detailGroup objectForKey:@"key"]; //Swift var object = detailGroup.objectForKey("key") @param key The object's property @return The value for the key provided */ - (BUILT_NULLABLE id)objectForKey:(NSString *)key; /**--------------------------------------------------------------------------------------- * @name Asset Method * --------------------------------------------------------------------------------------- */ //MARK: - Asset /** Get the info of the specified key of Asset object and returns instance of Asset. // 'projectImage' is a key in group object for asset //Obj-C Asset *asset = [groupObject assetForKey:@"projectImage"]; //Swift var asset:Asset = groupObject.assetForKey("projectImage") @param key Key containing the reference value of Asset @return Instance of Asset. */ - (Asset *)assetForKey:(NSString *)key; /** Get the array containing instance of Assets mentioned in key specified. // 'projectImages' is a key in group object for asset //Obj-C NSArray *assetArray = [groupObject assetsForKey:@"projectImages"]; //Swift var assetArray = groupObject.assetsForKey("projectImages") @param key Key containing the colection reference value of Assets. @return Array containing instance of Assets. */ - (NSArray *)assetsForKey:(NSString *)key; //MARK: - Group /**--------------------------------------------------------------------------------------- * @name Get Single or Multiple Group/s * --------------------------------------------------------------------------------------- */ /** Get the info of the specified key of sub group object and returns instance of Group. // 'details' is a key in employee group for its sub group //Obj-C Group *detailsGroup = [empGroup groupForKey:@"details"]; //Swift var detailsGroup:Group = empGroup.groupForKey("details") @param key Key containing the value of Group @return Instance of Group */ -(nullable Group*)groupForKey:(NSString *)key; /** Get the info of the specified key of group with multiple sub group and returns array of Group. // 'addresses' is a key in employee group for multiple group //Obj-C NSArray *groups = [empGroup groupsForKey:@"addresses"]; //Swift var groups:NSArray = empGroup.groupsForKey("addresses") @param key Key containing the value of Group array @return NSArray of Groups */ - (NSArray*)groupsForKey:(NSString *)key; //MARK: - HTML String from Markdown /**--------------------------------------------------------------------------------------- * @name HTML String from Markdown * --------------------------------------------------------------------------------------- */ /** Converts Markdown to String of HTML String for specified key //Assuming 'groupObj' is a Group instance //Obj-C NSString *markdownString = [groupObj HTMLStringForMarkdownKey:@"markdownString"]; //Swift var markdownString:NSString = groupObj.HTMLStringForMarkdownKey("markdownString") @param key is Markdown string parameter @return Markdown to HTML String */ - (BUILT_NULLABLE NSString *)HTMLStringForMarkdownKey:(NSString *)key; /** Converts Markdown to Array of HTML String for specified key //Assuming 'groupObj' is a Group instance //Obj-C NSArray *markdownArray = [groupObj HTMLArrayForMarkdownKey:@"multiple_markdown"]; //Swift var markdownArray = groupObj.HTMLArrayForMarkdownKey("multiple_markdown") @param key is Multiple Markdown Parameter @return HTML Array from Markdown */ - (BUILT_NULLABLE NSArray *)HTMLArrayForMarkdownKey:(NSString *)key; //MARK: Entry /** Returns an array of Entries for the specified reference key Use this method to retrieve entries when using includeRefFieldWithKey: method of Query. The reference field key may have an array of objects or a single object. This method will return the Entries for the included reference field. //Assuming 'groupObj' is a Group instance //Obj-C [grpObj entriesForKey:@"detail" withContentType:"description"]; //Swift grpObj.entriesForKey("detail" withContentType:"description") @param referenceKey the reference field key @param contentTypeName set the contentTypeName to which the object(s) belongs @return An array of Entries for the specified key */ - (NSArray *)entriesForKey:(NSString *)referenceKey withContentType:(NSString *)contentTypeName; @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. |