package com.philliphsu.bottomsheetpickers.view.numberpad;

import android.support.annotation.NonNull;

interface INumberPadTimePicker {
    interface View {
        void setNumberKeysEnabled(int start, int end);
        void setBackspaceEnabled(boolean enabled);
        void updateTimeDisplay(CharSequence time);
        void updateAmPmDisplay(CharSequence ampm);
        void setAmPmDisplayVisible(boolean visible);
        void setAmPmDisplayIndex(int index);
        void setLeftAltKeyText(CharSequence text);
        void setRightAltKeyText(CharSequence text);
        void setLeftAltKeyEnabled(boolean enabled);
        void setRightAltKeyEnabled(boolean enabled);
        void setHeaderDisplayFocused(boolean focused);
    }

    interface DialogView extends View {
        void setOkButtonEnabled(boolean enabled);
        void setResult(int hour, int minute);
        void cancel();
    }

    interface Presenter {
        void onNumberKeyClick(CharSequence numberKeyText);
        void onAltKeyClick(CharSequence altKeyText);
        void onBackspaceClick();
        boolean onBackspaceLongClick();
        /**
         * @param state The state to initialize the time picker with.
         */
        void onCreate(@NonNull State state);
        void onStop();
        State getState();
    }

    interface DialogPresenter extends Presenter {
        void onCancelClick();
        void onOkButtonClick();
    }

    interface State {
        int[] getDigits();
        // TODO: Why do we need the count?
        int getCount();
        // TODO: If we rename the annotation to HalfDay, rename method to getHalfDay().
        @AmPmStates.AmPmState
        int getAmPmState();
    }
}
@@ -664,32 +664,206 @@
 abled);%0A        
+// TODO: The header is no longer %22focusable%22. Delete this at some point.%0A        // This will prompt us to delete our tests that test the header display.%0A        @Deprecated 
 void setHeaderDi

Add reminder to delete deprecated View interface method in the future.