blob: 1eac988569db8bec0eb6b5d119751057bd63569d [file] [log] [blame]
Meki Cherkaoui97e7a592012-04-14 02:50:06 -07001
2/*
3 * _Body is an array of componenets
4 */
5var ExcludeComponent = function ExcludeComponent(_Body) {
6
7 //TODO Check BODY is an Array of componenets.
8
9 this.Body = _Body
10};
11
12ExcludeComponent.prototype.decode = function( decoder) {
13 body = decoder.readBinaryElement(this.getElementLabel());
14};
15
16ExcludeComponent.prototype.encode = function(encoder) {
17 encoder.writeElement(this.getElementLabel(), body);
18};
19
20ExcludeComponent.prototype.getElementLabel = function() { return CCNProtocolDTags.Component; };
21