import BaseAPI from './BaseAPI' ; export default class Stars extends BaseAPI { public add ( channel = null , file = null , file_comment = null , timestamp = null , extraArgs = { } ) { const args = { channel , file , file_comment , timestamp , ... extraArgs } ; return this . _post ( 'stars.add' , args ) ; } public list ( count = 100 , cursor = null , limit = null , page = 1 , extraArgs = { } ) { const args = { count , cursor , limit , page , ... extraArgs } ; return this . _post ( 'stars.list' , args ) ; } public remove ( channel = null , file = null , file_comment = null , timestamp = null , extraArgs = { } ) { const args = { channel , file , file_comment , timestamp , ... extraArgs } ; return this . _post ( 'stars.remove' , args ) ; } }