private void updateActivity ( ActivityType type , String name , String streamingUrl ) { if ( name == null ) { activity = null ; } else if ( streamingUrl == null ) { activity = new ActivityImpl ( type , name , null ) ; } else { activity = new ActivityImpl ( type , name , streamingUrl ) ; } websocketAdapter . updateStatus ( ) ; }
Sets the current activity along with type and streaming Url .