Describes schema format protocol. More...
Instance Methods | |
(id< TRCSchemaData >) | - requestSchemaDataFromData:dataProvider:error: |
Creates TRCSchemaData for request from schema file's NSData . More... | |
(id< TRCSchemaData >) | - responseSchemaDataFromData:dataProvider:error: |
Creates TRCSchemaData for response from schema file's NSData . More... | |
Describes schema format protocol.
Currently only JSON and PLIST schema formats available. If you want to add your own schema format, you must implement TRCSchemaFormat
, and register your implementation using registerSchemeFormat:forFileExtension: (TyphoonRestClient(Infrastructure))
- (id<TRCSchemaData> TRCSchemaFormat) requestSchemaDataFromData: | (NSData *) | data | |
dataProvider: | (id< TRCSchemaDataProvider >) | dataProvider | |
error: | (NSError **) | error | |
Creates TRCSchemaData
for request from schema file's NSData
.
data | file's data |
dataProvider | provides schemas by mapperTag. Used to treat TRCSchemaData with sub-schemes as single schema. |
error | error pointer to write out |
TRCSchemaData
protocol - (id<TRCSchemaData> TRCSchemaFormat) responseSchemaDataFromData: | (NSData *) | data | |
dataProvider: | (id< TRCSchemaDataProvider >) | dataProvider | |
error: | (NSError **) | error | |
Creates TRCSchemaData
for response from schema file's NSData
.
data | file's data |
dataProvider | provides schemas by mapperTag. Used to treat TRCSchemaData with sub-schemes as single schema. |
error | error pointer to write out |
TRCSchemaData
protocol