Class EventResponseDetailPresenter<T extends EventResponseDetailView>

    • Constructor Detail

      • EventResponseDetailPresenter

        public EventResponseDetailPresenter​(java.lang.String eventResponseId)
        Parameters:
        eventResponseId - id of the event response
      • EventResponseDetailPresenter

        public EventResponseDetailPresenter​(java.lang.String eventResponseId,
                                            EventsParams eventsParams)
        Parameters:
        eventResponseId - id of the event response
        eventsParams - instance of EventsParams
    • Method Detail

      • getCancelListener

        protected com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> getCancelListener()
        Create a listener for EventsAPI
        Returns:
        listener to handle EventsAPI requests
      • getEventRespondListener

        protected com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventResponse>,​EventResponse> getEventRespondListener()
        Create a listener for EventsAPI
        Returns:
        listener to handle EventsAPI requests
      • loadData

        public void loadData()
        Description copied from class: com.cheetahdigital.uikit.architecture.lce.LcePresenter
        Load initial view data.
        Specified by:
        loadData in class com.cheetahdigital.uikit.architecture.lce.LcePresenter<T extends EventResponseDetailView>
      • onLoadFailed

        public void onLoadFailed​(java.lang.String error)
        Description copied from class: com.cheetahdigital.uikit.architecture.lce.LcePresenter
        Show the error view
        Overrides:
        onLoadFailed in class com.cheetahdigital.uikit.architecture.lce.LcePresenter<T extends EventResponseDetailView>
        Parameters:
        error - message detailing the error
      • onEventResponseSuccess

        protected void onEventResponseSuccess​(EventResponse eventResponse)
        Called after a successful request on event response details
        Parameters:
        eventResponse - response received in EventResponse format
      • cancelEvent

        public void cancelEvent()
        Method for cancelling the event response
      • onCancelSuccess

        protected void onCancelSuccess​(com.cheetahdigital.corekit.models.responses.SuccessResponse data)
        Called after a successful cancel request
        Parameters:
        data - instance of SuccessResponse which contains the cancel response
      • onCancelFailed

        protected void onCancelFailed​(java.lang.String error)
        Called after a failed cancel request
        Parameters:
        error - details of the error
      • setBdsDelay

        public void setBdsDelay​(int bdsDelay)
        Delay used for broadcasting update
        Parameters:
        bdsDelay - value of the delay; Default is 3000
      • getBdsDelay

        public int getBdsDelay()
        Current bds delay used
        Returns:
        value of the current bds delay