import BaseAPI from './BaseAPI' ; export default class DND extends BaseAPI { public endDnd ( extraArgs = { } ) { const args = { ... extraArgs } ; return this . _post ( 'dnd.endDnd' , args ) ; } public endSnooze ( extraArgs = { } ) { const args = { ... extraArgs } ; return this . _post ( 'dnd.endSnooze' , args ) ; } public info ( user = null , extraArgs = { } ) { const args = { user , ... extraArgs } ; return this . _get ( 'dnd.info' , args ) ; } public setSnooze ( num_minutes , extraArgs = { } ) { const args = { num_minutes , ... extraArgs } ; return this . _get ( 'dnd.setSnooze' , args ) ; } public teamInfo ( users = [ ] , extraArgs = { } ) { const args = { users , ... extraArgs } ; return this . _get ( 'dnd.teamInfo' , args ) ; } }