summaryrefslogtreecommitdiff
path: root/src/de/podfetcher/feed/FeedImage.java
blob: 5d39b69b43c123ecd4ac212d8d882090babc18fe (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
package de.podfetcher.feed;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class FeedImage extends FeedFile {
	protected String title;
	protected Bitmap image_bitmap;

	public FeedImage(String download_url, String title) {
		super();
		this.download_url = download_url;
		this.title = title;
	}
	
	public FeedImage(long id, String title, String file_url, String download_url) {
		super();
		this.id = id;
		this.title = title;
		this.file_url = file_url;
		this.download_url = download_url;
	}

	public FeedImage() {
		
	}

	public String getTitle() {
		return title;
	}
	

	public void setTitle(String title) {
		this.title = title;
	}

	public Bitmap getImageBitmap() {
		if(image_bitmap == null) {
			image_bitmap = BitmapFactory.decodeFile(getFile_url());	
		}
		return image_bitmap;
	}
	
	
	
	
	
	
}