Last change
on this file since 21 was 21, checked in by bart, 4 years ago |
Voting requests now contain Offers. Fixed windows whitespace issue. Partiesserver now supports up to 8 parties simultaneously.
|
File size:
748 bytes
|
Line | |
---|
1 | package geniusweb.profilesserver.events;
|
---|
2 |
|
---|
3 | import geniusweb.profile.Profile;
|
---|
4 |
|
---|
5 | public class ProfileChangeEvent implements ChangeEvent {
|
---|
6 | private final Profile oldprof, newprof;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * @param oldprof the profile before the change. Null if it was added.
|
---|
10 | * @param newprof the profile after the change. Null if it was removed
|
---|
11 | */
|
---|
12 | public ProfileChangeEvent(Profile oldprof, Profile newprof) {
|
---|
13 | this.oldprof = oldprof;
|
---|
14 | this.newprof = newprof;
|
---|
15 | }
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * @return the new protocol according to the change. May be null if the
|
---|
19 | * profile does not exist anymore or is unparsable or does not match
|
---|
20 | * the domain.
|
---|
21 | */
|
---|
22 | public Profile getOldProfile() {
|
---|
23 | return oldprof;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public Profile getNewProfile() {
|
---|
27 | return newprof;
|
---|
28 | }
|
---|
29 |
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.