GetMessagesTask function ( BriefMessengerCallback < List < Message >> arg0 ) { if ( arg0 != null ) { mCallbacks . add ( arg0 ) ; } return this ; }
adds the given callback to the task . when the api call completes , via the get method , the api sends the data to the callback . note : you can add multiple callbacks . concode_field_sep BriefMessengerAPI mBriefMessengerAPI concode_elem_sep List<BriefMessengerCallback<List<Message>>> mCallbacks concode_elem_sep BriefMessengerCallback<List<Message>> EMPTY_CALLBACK concode_field_sep void activateObservable concode_elem_sep void get concode_elem_sep void onSuccess