Added updateStatus method

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

View File

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

View File

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