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