public static base_responses add ( nitro_service client , nstimer resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nstimer addresources [ ] = new nstimer [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new nstimer ( ) ; addresources [ i ] . name = resources [ i ] . name ; addresources [ i ] . interval = resources [ i ] . interval ; addresources [ i ] . unit = resources [ i ] . unit ; addresources [ i ] . comment = resources [ i ] . comment ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add nstimer resources .