Skip to content

Commit

Permalink
methods docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dephea committed Mar 28, 2024
1 parent d12cbb4 commit a2c9e7e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/utils/StatusAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ class StatusAPI{
this._restAPI = restAPI;
}

/**
* @param {String} message
* @param {String} backgroundColor Optional
* @param {String} font Optional
* @param {Array} participants Optional
*/
async sendTextStatus(message, backgroundColor = null, font = null, participants = null){
if (participants!==null){
CommonUtils.validateArray('participants', participants)
Expand Down Expand Up @@ -37,6 +43,12 @@ class StatusAPI{
return response.data
}

/**
* @param {String} urlFile
* @param {String} fileName
* @param {String} backgroundColor Optional
* @param {Array} participants Optional
*/
async sendVoiceStatus(urlFile, fileName, backgroundColor = null, participants = null){
if (participants!==null){
CommonUtils.validateArray('participants', participants)
Expand Down Expand Up @@ -65,6 +77,12 @@ class StatusAPI{
return response.data
}

/**
* @param {String} urlFile
* @param {String} fileName
* @param {String} caption Optional
* @param {Array} participants Optional
*/
async sendMediaStatus(urlFile, fileName, caption = null, participants = null){
if (participants!==null){
CommonUtils.validateArray('participants', participants)
Expand Down Expand Up @@ -96,6 +114,9 @@ class StatusAPI{
return response.data
}

/**
* @param {number} minutes Optional
*/
async getOutgoingStatuses(minutes=null){
const method = 'getOutgoingStatuses'
let url = ""
Expand All @@ -111,6 +132,9 @@ class StatusAPI{
return response.data;
}

/**
* @param {number} minutes Optional
*/
async getIncomingStatuses(minutes=null){
const method = 'getIncomingStatuses'
let url = ""
Expand All @@ -126,6 +150,9 @@ class StatusAPI{
return response.data;
}

/**
* @param {String} idMessage
*/
async getStatusStatistic(idMessage){
CommonUtils.validateString('idMessage', idMessage)

Expand All @@ -134,6 +161,9 @@ class StatusAPI{
return response.data;
}

/**
* @param {String} idMessage
*/
async deleteStatus(idMessage){
CommonUtils.validateString('idMessage', idMessage)

Expand Down

0 comments on commit a2c9e7e

Please sign in to comment.