Let's leave this to one side for now; it was premature of me to bring it up.


On 15 April 2014 00:37, Adam Cox <notifications@github.com> wrote:

> In Classes/common/CDTReplicator/CDTReplication.m:
>
> > +    if([self source] && [self target])
> > +        doc = [NSMutableDictionary dictionaryWithDictionary:@{@"source":[self source], @"target":[self target]}];
> > +    else return nil;
> > +
> > +    if([self filterParams])
> > +        [doc setObject:[self filterParams] forKey:@"query_params"];
> > +
> > +    return doc;
> > +}
> > +
> > +-(id) filter
> > +{
> > +    return nil;
> > +}
> > +
> > +@end
>
>  I thought this might be a good way to simplify the construction of
> replications:
> http://www.annema.me/blog/post/2014/4/4/the-builder-pattern-in-objective-cButdon't take this as a directive :D
>  Do you mean for the construction of CDTReplications or the construction of
> CDTReplicator objects via the CDTReplicatorFactory?
> … <#145629a6aa81bc6d_>
>  — Reply to this email directly or view it on GitHub<
> https://github.com/cloudant/CDTDatastore/pull/23/files#r11588587> .
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cloudant/CDTDatastore/pull/23/files#r11613911>
> .
>