1 /*
2  * Copyright (C) 2007 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.example.codelab.rssexample;
18 
19 import java.util.Date;
20 
21 // Custom class to hold an RSS item.
22 public class RssItem{
23     public String url;
24     public String title;
25     public boolean hasBeenRead = false;
26     public String content;
27     public Date lastUpdated;
28 
RssItem(String url, String title)29     public RssItem(String url, String title){
30         this.url = url;
31         this.title = title;
32     }
33 
toString()34     @Override public String toString(){
35         return title;
36     }
37 }
38