Class DialogPackets


  • public class DialogPackets
    extends java.lang.Object
    Utility class for creating and queuing dialog packets.
    • Constructor Summary

      Constructors 
      Constructor Description
      DialogPackets()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void closeInterface()
      Closes the interface by queueing a packet to the server.
      static void sendNameInput​(java.lang.String name)
      Sends the name input to the RSClientPacket for queuing.
      static void sendNumberInput​(int number)
      Sends a number input to the specified destination.
      static void sendNumberInput​(int number, boolean closeDialog)
      Sends a number input to the server and optionally closes the dialog.
      static void sendTextInput​(java.lang.String text)
      Sends a text input to the server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DialogPackets

        public DialogPackets()
    • Method Detail

      • sendNumberInput

        public static void sendNumberInput​(int number,
                                           boolean closeDialog)
        Sends a number input to the server and optionally closes the dialog.
        Parameters:
        number - the number input to send
        closeDialog - true to close the dialog after sending the number input
      • sendNumberInput

        public static void sendNumberInput​(int number)
        Sends a number input to the specified destination.
        Parameters:
        number - the number input to be sent
      • sendNameInput

        public static void sendNameInput​(java.lang.String name)
        Sends the name input to the RSClientPacket for queuing.
        Parameters:
        name - the name to be sent
      • sendTextInput

        public static void sendTextInput​(java.lang.String text)
        Sends a text input to the server.
        Parameters:
        text - the text to be sent
      • closeInterface

        public static void closeInterface()
        Closes the interface by queueing a packet to the server.