Added updateStatus method
This commit is contained in:
parent
a3e7034713
commit
f128c2f307
@ -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; }
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @author Leon Hofmeister
|
* @author Leon Hofmeister
|
||||||
* @author Maximilian Käfer
|
* @author Maximilian Kä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 {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user