Skip to content

Commit

Permalink
Merge pull request #55 from tvd12/master
Browse files Browse the repository at this point in the history
release version 1.2.6
  • Loading branch information
tvd12 authored Feb 13, 2017
2 parents 3c428bf + 2471485 commit c2e36e3
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ We must spend a lot of time to declare, init variables. Some time we also have t
<dependency>
<groupId>com.tvd12</groupId>
<artifactId>ezyfox-core</artifactId>
<version>1.2.5</version>
<version>1.2.6</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>com.tvd12</groupId>
<artifactId>ezyfox-core</artifactId>
<version>1.2.5-SNAPSHOT</version>
<version>1.2.6-SNAPSHOT</version>
<packaging>jar</packaging>

<name>ezyfox-core</name>
Expand Down
19 changes: 18 additions & 1 deletion src/main/java/com/tvd12/ezyfox/core/command/Response.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public interface Response extends BaseCommand {
* @param users user agent
* @return this pointer
*/
public <U extends ApiBaseUser> Response recipients(Collection<U> users);
<U extends ApiBaseUser> Response recipients(Collection<U> users);

/**
* add recipients to list
Expand All @@ -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 <U> user type
* @param users the excluded users
* @return this pointer
*/
<U extends ApiBaseUser> Response exclude(Collection<U> users);

/**
* user udp protocol or not
*
Expand Down
15 changes: 13 additions & 2 deletions src/main/java/com/tvd12/ezyfox/core/command/ResponseToRoom.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 <U> user type
* @param users the excluded users
* @return this pointer
*/
ResponseToRoom exclude(ApiBaseUser user);
<U extends ApiBaseUser> ResponseToRoom exclude(Collection<U> users);

/**
* user udp protocol or not
Expand Down

0 comments on commit c2e36e3

Please sign in to comment.