You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Events.kt 806B

12345678910111213141516171819202122232425262728
  1. @file:Suppress("ArrayInDataClass")
  2. package com.dmdirc.ktirc.events
  3. import com.dmdirc.ktirc.model.ServerFeatureMap
  4. sealed class IrcEvent
  5. /**
  6. * Raised when the server initially welcomes us to the IRC network.
  7. */
  8. data class ServerWelcome(val localNick: String): IrcEvent()
  9. /**
  10. * Raised when the features supported by the server have changed. This may occur numerous times during the
  11. * connection phase.
  12. */
  13. data class ServerFeaturesUpdated(val serverFeatures: ServerFeatureMap) : IrcEvent()
  14. /**
  15. * Raised when the connection to the server has been established, configuration information has been received, etc.
  16. */
  17. object ServerConnected : IrcEvent()
  18. /**
  19. * Raised whenever a PING is received from the server.
  20. */
  21. data class PingReceived(val nonce: ByteArray): IrcEvent()