1 package com.atlassian.streams.refapp.api;
2
3 import com.atlassian.streams.api.ActivityObjectType;
4 import com.atlassian.streams.api.ActivityVerb;
5 import org.joda.time.DateTime;
6
7 public class StreamsEntryRequest {
8 private int id;
9 private DateTime postedDate = new DateTime();
10 private String title;
11 private String user;
12 private ActivityObjectType type;
13 private ActivityVerb verb;
14
15 public int getId() {
16 return id;
17 }
18
19 public StreamsEntryRequest id(final int id) {
20 this.id = id;
21 return this;
22 }
23
24 public DateTime getPostedDate() {
25 return postedDate;
26 }
27
28 public StreamsEntryRequest postedDate(final DateTime postedDate) {
29 this.postedDate = postedDate;
30 return this;
31 }
32
33 public String getTitle() {
34 return title;
35 }
36
37 public StreamsEntryRequest title(final String title) {
38 this.title = title;
39 return this;
40 }
41
42 public String getUser() {
43 return user;
44 }
45
46 public StreamsEntryRequest user(final String user) {
47 this.user = user;
48 return this;
49 }
50
51 public ActivityVerb getVerb() {
52 return verb;
53 }
54
55 public StreamsEntryRequest verb(final ActivityVerb verb) {
56 this.verb = verb;
57 return this;
58 }
59
60 public ActivityObjectType getType() {
61 return type;
62 }
63
64 public StreamsEntryRequest type(final ActivityObjectType type) {
65 this.type = type;
66 return this;
67 }
68 }