summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/gpoddernet/model/GpodnetSubscriptionChange.java
blob: dccb53e5d9fcf685ca095c1ca9a8c0b9e0fc5d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package de.danoeh.antennapod.gpoddernet.model;

import java.util.List;

public class GpodnetSubscriptionChange {
    private List<String> added;
    private List<String> removed;
    private long timestamp;

    public GpodnetSubscriptionChange(List<String> added, List<String> removed,
                                     long timestamp) {
        if (added == null || removed == null) {
            throw new IllegalArgumentException(
                    "added and remove must not be null");
        }
        this.added = added;
        this.removed = removed;
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return "GpodnetSubscriptionChange [added=" + added.toString()
                + ", removed=" + removed.toString() + ", timestamp="
                + timestamp + "]";
    }

    public List<String> getAdded() {
        return added;
    }

    public List<String> getRemoved() {
        return removed;
    }

    public long getTimestamp() {
        return timestamp;
    }

}