blob: 440e18176c9de6ad9cb10b4f5d37bc25e9afc2ff (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
// Copyright 2007 The Android Open Source Project
package com.google.wireless.gdata.data;
/**
* Class containing information about a GData feed. Note that this feed does
* not contain any of the entries in that feed -- the entries are yielded
* separately from this Feed.
*/
// TODO: add a createEntry method?
// TODO: comment that setters are only used for parsing code.
public class Feed {
private int totalResults;
private int startIndex;
private int itemsPerPage;
private String title;
private String id;
private String lastUpdated;
private String category;
private String categoryScheme;
/**
* Creates a new, empty feed.
*/
public Feed() {
}
public int getTotalResults() {
return totalResults;
}
public void setTotalResults(int totalResults) {
this.totalResults = totalResults;
}
public int getStartIndex() {
return startIndex;
}
public void setStartIndex(int startIndex) {
this.startIndex = startIndex;
}
public int getItemsPerPage() {
return itemsPerPage;
}
public void setItemsPerPage(int itemsPerPage) {
this.itemsPerPage = itemsPerPage;
}
/**
* @return the category
*/
public String getCategory() {
return category;
}
/**
* @param category the category to set
*/
public void setCategory(String category) {
this.category = category;
}
/**
* @return the categoryScheme
*/
public String getCategoryScheme() {
return categoryScheme;
}
/**
* @param categoryScheme the categoryScheme to set
*/
public void setCategoryScheme(String categoryScheme) {
this.categoryScheme = categoryScheme;
}
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
/**
* @return the lastUpdated
*/
public String getLastUpdated() {
return lastUpdated;
}
/**
* @param lastUpdated the lastUpdated to set
*/
public void setLastUpdated(String lastUpdated) {
this.lastUpdated = lastUpdated;
}
/**
* @return the title
*/
public String getTitle() {
return title;
}
/**
* @param title the title to set
*/
public void setTitle(String title) {
this.title = title;
}
}
|