diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2020-01-11 17:53:41 +0100 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2020-01-11 17:53:41 +0100 |
commit | 0a26fd04d8d87e6e98b014bcb906bd9275dc7f78 (patch) | |
tree | 3785889215f09c084c25c581a251618617e0b783 /src/main/java/pl/edu/mimuw/cloudatlas/agent/messages | |
parent | f055032fa683ab1cb1e92627849eb9fa7eeed903 (diff) | |
parent | 2b8b0560346fe7e55c293550efb003d9bd25db98 (diff) |
Merge branch 'master' into start-gossip-girl
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/agent/messages')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/StanikMessage.java | 3 | ||||
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/UpdateContactsMessage.java | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/StanikMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/StanikMessage.java index 3daa5f9..d59acda 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/StanikMessage.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/StanikMessage.java @@ -9,7 +9,8 @@ public abstract class StanikMessage extends AgentMessage { REMOVE_ZMI, SET_ATTRIBUTE, UPDATE_ATTRIBUTES, - UPDATE_QUERIES + UPDATE_QUERIES, + UPDATE_CONTACTS } private Type type; diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/UpdateContactsMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/UpdateContactsMessage.java new file mode 100644 index 0000000..227d213 --- /dev/null +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/UpdateContactsMessage.java @@ -0,0 +1,20 @@ +package pl.edu.mimuw.cloudatlas.agent.messages; + +import java.util.Set; + +import pl.edu.mimuw.cloudatlas.model.ValueContact; + +public class UpdateContactsMessage extends StanikMessage { + private Set<ValueContact> contacts; + + public UpdateContactsMessage(String messageId, long timestamp, Set<ValueContact> contacts) { + super(messageId, timestamp, Type.UPDATE_CONTACTS); + this.contacts = contacts; + } + + public UpdateContactsMessage() {} + + public Set<ValueContact> getContacts() { + return contacts; + } +} |