Interface ClientManager

All Known Implementing Classes:
Discord

public interface ClientManager
This interface provides basic functionality for GUI or any user interacting(like discord, telegram) class
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add()
    It processes the message to add any new details from user
    void
    It processes the message to delete any new details from user
    To get the current sessions clientId, for some operations.
    void
    This will be used in future to make bot more interactive, where user can select some option from previously shown options
    This is first function which will be called by the eventListener.
    void
    setClientId​(String clientId)
    It will set the value of a new clientId to session variables(currently they are local, later we will move them to Spring session variables)
    void
    It will process any request to display something, in future there can be multiple type of views
    void
    It will suggest the user, what he should do for now(out of his available pending tasks)
    void
    It will process the request to show the unscheduled events in calendar
    void
    It will process any request for data update
  • Method Details

    • update

      void update()
      It will process any request for data update
    • setClientId

      void setClientId(String clientId)
      It will set the value of a new clientId to session variables(currently they are local, later we will move them to Spring session variables)
    • getClientId

      String getClientId()
      To get the current sessions clientId, for some operations.
      Returns:
      clientId
    • add

      void add()
      It processes the message to add any new details from user
    • delete

      void delete()
      It processes the message to delete any new details from user
    • show

      void show()
      It will process any request to display something, in future there can be multiple type of views
    • suggestForNow

      void suggestForNow()
      It will suggest the user, what he should do for now(out of his available pending tasks)
    • suggestWeeklyUnscheduled

      void suggestWeeklyUnscheduled()
      It will process the request to show the unscheduled events in calendar
    • processInput

      String processInput(String msg)
      This is first function which will be called by the eventListener. Purpose is to do basic msg parsing and based on received input further call for next operation function.
      Parameters:
      msg - raw_input from user
      Returns:
      response
    • getLastMessageDataObject

      void getLastMessageDataObject()
      This will be used in future to make bot more interactive, where user can select some option from previously shown options