Mercurial Hosting > nabble
diff src/nabble/model/Subscription.java @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/nabble/model/Subscription.java Thu Mar 21 19:15:52 2019 -0600 @@ -0,0 +1,17 @@ +package nabble.model; + + +public interface Subscription { + + public enum To { DESCENDANTS, CHILDREN }; + + public enum Type { INSTANT, DAILY_DIGEST }; + + public User getSubscriber(); + public Node getNode(); + public To getTo(); + public void setTo(To to); + public Type getType(); + public void setType(Type type); + public void delete(); +}