Interface DatetimePickerAction<T extends java.time.temporal.Temporal>

    • Method Detail

      • getLabel

        java.lang.String getLabel()
        Label for the action.
        • Required for templates other than image carousel. Max: 20 characters
        • Optional for image carousel templates. Max: 12 characters.
        Specified by:
        getLabel in interface Action
      • getData

        java.lang.String getData()
        String returned via webhook in the postback.data property of the postback event.

        Max: 300 characters

      • getInitial

        T getInitial()
        Initial value of date or time.
      • getMax

        T getMax()
        Largest date or time value that can be selected. Must be greater than the min value.
      • getMin

        T getMin()
        Smallest date or time value that can be selected. Must be less than the max value.
      • parse

        @Deprecated
        static DatetimePickerAction<?> parse​(java.lang.String label,
                                             java.lang.String data,
                                             DatetimePickerAction.Mode mode,
                                             java.lang.String initial,
                                             java.lang.String max,
                                             java.lang.String min)
        Create new instance.
        Parameters:
        label - Label for the action. Max: 20 characters.
        data - String returned via webhook in the postback.data property of the postback event. Max: 300 characters.
        mode - Action mode. One of 'date', 'time', 'datetime'.
        initial - Initial value of date or time (optional)
        max - Largest date or time value that can be selected. Must be greater than the min value. (optional)
        min - Smallest date or time value that can be selected. Must be less than the max value. (optional)