Enum WebsocketEventType

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static WebsocketEventType fromId​(int id)  
      int id()  
      static WebsocketEventType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static WebsocketEventType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SUBSCRIBER_CREATED

        public static final WebsocketEventType SUBSCRIBER_CREATED
        Sent once we successfully connected to the server
      • SUBSCRIBER_COUNT

        public static final WebsocketEventType SUBSCRIBER_COUNT
        Sent every time a subscriber got added or disconnected
      • CREATOR_DISCONNECTED

        public static final WebsocketEventType CREATOR_DISCONNECTED
        Sent once the creator disconnected. After this packet the server will automatically close the connection once the queue size (sent in ADDED_TO_QUEUE and SKIN_UPLOADED reaches 0.
      • ADDED_TO_QUEUE

        public static final WebsocketEventType ADDED_TO_QUEUE
        Sent every time a skin got added to the upload queue
      • SKIN_UPLOADED

        public static final WebsocketEventType SKIN_UPLOADED
        Sent every time a skin got successfully uploaded
      • NEWS_ADDED

        public static final WebsocketEventType NEWS_ADDED
        Sent every time a news item was added
      • LOG_MESSAGE

        public static final WebsocketEventType LOG_MESSAGE
        Sent when the server wants you to know something. Currently used for violations that aren't bad enough to close the connection
    • Method Detail

      • values

        public static WebsocketEventType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WebsocketEventType c : WebsocketEventType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WebsocketEventType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • id

        public int id()