Class ShippingDetailsPresenter<T extends ShippingDetailsView>

  • Type Parameters:
    T - the MvpView class
    All Implemented Interfaces:
    com.cheetahdigital.uikit.architecture.mvp.MvpPresenter<T>

    public class ShippingDetailsPresenter<T extends ShippingDetailsView>
    extends com.cheetahdigital.uikit.architecture.lce.LcePresenter<T>
    The MvpPresenter class for ShippingDetailsActivity
    • Constructor Detail

      • ShippingDetailsPresenter

        public ShippingDetailsPresenter()
        Constructor for the Shipping Details Presenter
      • ShippingDetailsPresenter

        public ShippingDetailsPresenter​(ProfileParams profileParams)
    • Method Detail

      • 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 ShippingDetailsView>
      • getProfile

        protected void getProfile()
        Call to get the Profile of the user
      • onProfileDownloadFailure

        protected void onProfileDownloadFailure​(java.lang.String error)
        Called when getting profile fails
        Parameters:
        error - error message
      • onProfileDownloadSuccess

        protected void onProfileDownloadSuccess​(Profile data)
        Called when getting profile is successful
        Parameters:
        data - Profile
      • onMetadataDownloadFailure

        protected void onMetadataDownloadFailure​(java.lang.String error)
        Called when getting metadata fails
        Parameters:
        error - error message
      • onMetadataDownloadSuccess

        protected void onMetadataDownloadSuccess​(java.util.List<Metadata> data)
        Called when getting metadata is successful
        Parameters:
        data - list of Metadata