<TRCSchemaDataModifier > Protocol Reference
Inheritance diagram for <TRCSchemaDataModifier >:

Instance Methods

(id) - schemaData:replacementForValue:withOptions:withSchemeValue:
 Returns replacement for value. More...
 
(id) - schemaData:objectFromResponse:withMapperTag:
 Returns replacement for responseObject using TRCObjectMapper for specified tag. More...
 
(id) - schemaData:requestFromObject:withMapperTag:
 Returns replacement for requestObject using TRCObjectMapper for specified tag. More...
 

Method Documentation

◆ schemaData:replacementForValue:withOptions:withSchemeValue:()

- (id TRCSchemaDataModifier) schemaData: (id< TRCSchemaData >)  data
replacementForValue: (id)  object
withOptions: (TRCSchemaDataValueOptions *)  options
withSchemeValue: (id)  schemeValue 

Returns replacement for value.

Used to replace input value using TRCValueTransformers.

◆ schemaData:objectFromResponse:withMapperTag:()

- (id TRCSchemaDataModifier) schemaData: (id< TRCSchemaData >)  data
objectFromResponse: (id)  object
withMapperTag: (NSString *)  tag 

Returns replacement for responseObject using TRCObjectMapper for specified tag.

TRCObjectMapper implements logic to transform received object into model object. For example, for JSON serializer, TRCObjectMappers converts received NSDictionary into your model object.

◆ schemaData:requestFromObject:withMapperTag:()

- (id TRCSchemaDataModifier) schemaData: (id< TRCSchemaData >)  data
requestFromObject: (id)  object
withMapperTag: (NSString *)  tag 

Returns replacement for requestObject using TRCObjectMapper for specified tag.

TRCObjectMapper implements logic to transform model object passed in request, into object which can be used by request serializer. For example, for JSON serialization, TRCObjectMapper converts your model object into NSDictionary which could be serialized into JSON string