Improve code quality and add comments
This commit is contained in:
@@ -15,6 +15,7 @@ export class BotService {
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Function to get all keywords
|
||||
* @returns Observable
|
||||
*/
|
||||
public getKeywords(): Observable<any> {
|
||||
@@ -28,6 +29,7 @@ export class BotService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to create a keyword
|
||||
* @param {string} keyword
|
||||
* @returns Observable
|
||||
*/
|
||||
@@ -47,6 +49,7 @@ export class BotService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to delete a keyword
|
||||
* @param {string} keyword
|
||||
* @returns Observable
|
||||
*/
|
||||
@@ -63,6 +66,7 @@ export class BotService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to get all shares
|
||||
* @returns Observable
|
||||
*/
|
||||
public getSymbols(): Observable<any> {
|
||||
@@ -76,6 +80,7 @@ export class BotService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to create a share
|
||||
* @param {string} keyword
|
||||
* @returns Observable
|
||||
*/
|
||||
@@ -96,6 +101,7 @@ export class BotService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to delete a share
|
||||
* @param {string} symbol
|
||||
* @returns Observable
|
||||
*/
|
||||
|
Reference in New Issue
Block a user