diff --git a/README.md b/README.md index 3f7050e..30359ba 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ We must spend a lot of time to declare, init variables. Some time we also have t com.tvd12 ezyfox-core - 1.2.5 + 1.2.6 ``` diff --git a/pom.xml b/pom.xml index 761c515..d5a9fe3 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ com.tvd12 ezyfox-core - 1.2.5-SNAPSHOT + 1.2.6-SNAPSHOT jar ezyfox-core diff --git a/src/main/java/com/tvd12/ezyfox/core/command/Response.java b/src/main/java/com/tvd12/ezyfox/core/command/Response.java index 6aa96fb..bc1c97e 100644 --- a/src/main/java/com/tvd12/ezyfox/core/command/Response.java +++ b/src/main/java/com/tvd12/ezyfox/core/command/Response.java @@ -55,7 +55,7 @@ public interface Response extends BaseCommand { * @param users user agent * @return this pointer */ - public Response recipients(Collection users); + Response recipients(Collection users); /** * add recipients to list @@ -65,6 +65,23 @@ public interface Response extends BaseCommand { */ Response recipients(String... usernames); + /** + * Add user to excluded users list, excluded users will not receive the message + * + * @param users the excluded users + * @return this pointer + */ + Response exclude(ApiBaseUser... users); + + /** + * Add user to excluded users list, excluded users will not receive the message + * + * @param user type + * @param users the excluded users + * @return this pointer + */ + Response exclude(Collection users); + /** * user udp protocol or not * diff --git a/src/main/java/com/tvd12/ezyfox/core/command/ResponseToRoom.java b/src/main/java/com/tvd12/ezyfox/core/command/ResponseToRoom.java index 0fb1c9b..9a68392 100644 --- a/src/main/java/com/tvd12/ezyfox/core/command/ResponseToRoom.java +++ b/src/main/java/com/tvd12/ezyfox/core/command/ResponseToRoom.java @@ -3,6 +3,8 @@ */ package com.tvd12.ezyfox.core.command; +import java.util.Collection; + import com.tvd12.ezyfox.core.entities.ApiBaseUser; import com.tvd12.ezyfox.core.entities.ApiRoom; @@ -51,10 +53,19 @@ public interface ResponseToRoom extends BaseCommand { /** * Add user to excluded users list, excluded users will not receive the message * - * @param user the excluded user + * @param users the excluded user + * @return this pointer + */ + ResponseToRoom exclude(ApiBaseUser... users); + + /** + * Add user to excluded users list, excluded users will not receive the message + * + * @param user type + * @param users the excluded users * @return this pointer */ - ResponseToRoom exclude(ApiBaseUser user); + ResponseToRoom exclude(Collection users); /** * user udp protocol or not