public Attachments(IConnection connection, ISerializer serializer) : base(connection) { Ensure.That(serializer, "serializer").IsNotNull(); AttachmentResponseFactory = new AttachmentResponseFactory(serializer); DocumentHeaderResponseFactory = new DocumentHeaderResponseFactory(serializer); GetAttachmentHttpRequestFactory = new GetAttachmentHttpRequestFactory(Connection); PutAttachmentHttpRequestFactory = new PutAttachmentHttpRequestFactory(Connection); DeleteAttachmentHttpRequestFactory = new DeleteAttachmentHttpRequestFactory(Connection); }
public Documents(IConnection connection, ISerializer serializer) : base(connection) { Ensure.That(serializer, "serializer").IsNotNull(); BulkHttpRequestFactory = new BulkHttpRequestFactory(Connection); CopyDocumentHttpRequestFactory = new CopyDocumentHttpRequestFactory(Connection); ReplaceDocumentHttpRequestFactory = new ReplaceDocumentHttpRequestFactory(Connection); DocumentExistsHttpRequestFactory = new DocumentExistsHttpRequestFactory(Connection); GetDocumentHttpRequestFactory = new GetDocumentHttpRequestFactory(Connection); PostDocumentHttpRequestFactory = new PostDocumentHttpRequestFactory(Connection); PutDocumentHttpRequestFactory = new PutDocumentHttpRequestFactory(Connection); DeleteDocumentHttpRequestFactory = new DeleteDocumentHttpRequestFactory(Connection); DocumentReponseFactory = new DocumentResponseFactory(serializer); DocumentHeaderReponseFactory = new DocumentHeaderResponseFactory(serializer); BulkReponseFactory = new BulkResponseFactory(serializer); }