public String getCommand ( final ToastrSettings settings ) { final StringBuilder sb = new StringBuilder ( ) ; sb . append ( "toastr." ) ; sb . append ( settings . getToastrType ( ) . getValue ( ) . getValue ( ) ) ; sb . append ( "('" ) ; sb . append ( settings . getNotificationContent ( ) . getValue ( ) ) ; sb . append ( "'" ) ; if ( StringUtils . isNotEmpty ( settings . getNotificationTitle ( ) . getValue ( ) ) ) { sb . append ( ", '" ) ; sb . append ( settings . getNotificationTitle ( ) . getValue ( ) ) ; sb . append ( "'" ) ; } sb . append ( ")" ) ; return sb . toString ( ) ; }
Gets the command .