Befor generating
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
const Operation = require('./operation');
|
||||
|
||||
/**
|
||||
* Implements functions to deal with a SubscribeOperation object.
|
||||
* @class
|
||||
* @alias module:@asyncapi/parser#SubscribeOperation
|
||||
* @extends Operation
|
||||
* @returns {SubscribeOperation}
|
||||
*/
|
||||
class SubscribeOperation extends Operation {
|
||||
/**
|
||||
* @returns {boolean}
|
||||
*/
|
||||
isPublish() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {boolean}
|
||||
*/
|
||||
isSubscribe() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
kind() {
|
||||
return 'subscribe';
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = SubscribeOperation;
|
||||
Reference in New Issue
Block a user