node-ldapjs/lib/messages/del_response.js

24 lines
521 B
JavaScript
Raw Normal View History

2011-08-04 20:32:01 +00:00
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
var util = require('util');
var LDAPResult = require('./result');
var Protocol = require('../protocol');
///--- API
function DeleteResponse(options) {
if (options) {
if (typeof (options) !== 'object')
2011-08-04 20:32:01 +00:00
throw new TypeError('options must be an object');
} else {
options = {};
}
options.protocolOp = Protocol.LDAP_REP_DELETE;
LDAPResult.call(this, options);
}
util.inherits(DeleteResponse, LDAPResult);
module.exports = DeleteResponse;