2020-07-25 16:26:13 +02:00
|
|
|
package envoy.event;
|
|
|
|
|
|
|
|
/**
|
2020-10-19 18:17:51 +02:00
|
|
|
* This event should be sent when a user is currently typing something in a chat.
|
2020-07-25 16:26:13 +02:00
|
|
|
*
|
|
|
|
* @author Leon Hofmeister
|
|
|
|
* @since Envoy Client v0.2-beta
|
|
|
|
*/
|
2020-08-22 13:37:07 +02:00
|
|
|
public final class IsTyping extends Event<Long> {
|
2020-07-25 16:26:13 +02:00
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
/**
|
2020-09-25 14:29:23 +02:00
|
|
|
* The number of milliseconds that this event will be active.
|
|
|
|
* <p>
|
2020-07-25 16:26:13 +02:00
|
|
|
* Currently set to 3.5 seconds.
|
2020-07-25 16:51:46 +02:00
|
|
|
*
|
|
|
|
* @since Envoy Common v0.2-beta
|
2020-07-25 16:26:13 +02:00
|
|
|
*/
|
|
|
|
public static final int millisecondsActive = 3500;
|
|
|
|
|
|
|
|
/**
|
2020-10-27 23:01:44 +01:00
|
|
|
* Creates a new {@code IsTyping}. The client will only send the contact that should receive
|
|
|
|
* this event. The server will send the id of the contact who sent this event.
|
2020-07-25 16:26:13 +02:00
|
|
|
*
|
2020-10-27 23:01:44 +01:00
|
|
|
* @param id the ID of the recipient (client)/ originator(server)
|
2020-07-25 16:51:46 +02:00
|
|
|
* @since Envoy Common v0.2-beta
|
2020-07-25 16:26:13 +02:00
|
|
|
*/
|
2020-10-27 23:01:44 +01:00
|
|
|
public IsTyping(long id) {
|
|
|
|
super(id);
|
2020-07-25 16:26:13 +02:00
|
|
|
}
|
|
|
|
}
|