Class EventDetailsPresenter<T extends EventDetailsView>

    • Constructor Detail

      • EventDetailsPresenter

        public EventDetailsPresenter​(java.lang.String eventId)
        Constructor for EventDetailsPresenter
        Parameters:
        eventId - id of the event
    • Method Detail

      • respondToEvent

        public void respondToEvent​(java.lang.String latLongJSONRaw)
        Respond to the current event
        Parameters:
        latLongJSONRaw - long lat to be added in header
      • respondToEvent

        public void respondToEvent​(java.lang.String latLongJSONRaw,
                                   EventsParams eventsParams)
        Respond to the current event
        Parameters:
        latLongJSONRaw - long lat to be added in header
        eventsParams - EventsParams to use for responding
      • onEventDownloadSuccess

        protected void onEventDownloadSuccess​(Event event)
        Called upon receiving a successful call on fetching an event
        Parameters:
        event - received response parse in Event
      • onEventDownloadFailed

        protected void onEventDownloadFailed​(java.lang.String error)
        Called after a failed request for fetching event
        Parameters:
        error - detail of the error
      • onRespondSuccess

        protected void onRespondSuccess​(SuccessResponse data)
        Called after a successful respond to event
        Parameters:
        data - response received
      • onRespondFailed

        protected void onRespondFailed​(java.lang.String error)
        Called after a failed respond
        Parameters:
        error - detail of the error