Added updateStatus method

This commit is contained in:
DieGurke 2020-03-26 20:03:20 +01:00
parent a3e7034713
commit f128c2f307
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package envoy.data; package envoy.data;
import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.Map; import java.util.Map;
@ -42,5 +43,7 @@ public final class GroupMessage extends Message {
this.memberStatuses = memberStatuses; this.memberStatuses = memberStatuses;
} }
public void updateStatus() { setStatus(Collections.min(memberStatuses.values())); }
public Map<Long, MessageStatus> getMemberStatuses() { return memberStatuses; } public Map<Long, MessageStatus> getMemberStatuses() { return memberStatuses; }
} }

View File

@ -5,7 +5,7 @@
* @author Leon Hofmeister * @author Leon Hofmeister
* @author Maximilian K&auml;fer * @author Maximilian K&auml;fer
* @author Kai S.K. Engelbart * @author Kai S.K. Engelbart
* @since Envoy common v0.1-beta * @since Envoy Common v0.1-beta
*/ */
module envoy.common { module envoy.common {