package de.metalmatze.krautreporter.entities;

import java.net.URL;
import java.util.Date;

public class Article {

    private String uuid;
    private String title;
    private Date date;
    private URL link;
    private String content;
    private URL teaserImage;

    public Article() {
    }

    public Article(String uuid, String title, Date date, URL link, String content, URL teaserImage) {
        this.uuid = uuid;
        this.title = title;
        this.date = date;
        this.link = link;
        this.content = content;
        this.teaserImage = teaserImage;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getTitle() {
        return title;
    }

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

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public URL getLink() {
        return link;
    }

    public void setLink(URL link) {
        this.link = link;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public URL getTeaserImage() {
        return teaserImage;
    }

    public void setTeaserImage(URL teaserImage) {
        this.teaserImage = teaserImage;
    }

    @Override
    public String toString() {
        return "Article{" +
                "uuid='" + uuid + '\'' +
                ", title='" + title + '\'' +
                ", date=" + date +
                ", link=" + link +
                ", teaserImage=" + teaserImage +
                ", content='" + content + '\'' +
                '}';
    }
}

@@ -221,51 +221,45 @@
 ate 
-String content;%0A    private URL teaserImage
+URL image;%0A    private String content
 ;%0A%0A 
@@ -353,16 +353,27 @@
 RL link,
+ URL image,
  String 
@@ -383,25 +383,8 @@
 tent
-, URL teaserImage
 ) %7B%0A
@@ -485,24 +485,52 @@
 ink = link;%0A
+        this.image = image;%0A
         this
@@ -553,48 +553,8 @@
 nt;%0A
-        this.teaserImage = teaserImage;%0A
     
@@ -1064,32 +1064,162 @@
  = link;%0A    %7D%0A%0A
+    public URL getImage() %7B%0A        return image;%0A    %7D%0A%0A    public void setImage(URL image) %7B%0A        this.image = image;%0A    %7D%0A%0A
     public Strin
@@ -1354,174 +1354,8 @@
  %7D%0A%0A
-    public URL getTeaserImage() %7B%0A        return teaserImage;%0A    %7D%0A%0A    public void setTeaserImage(URL teaserImage) %7B%0A        this.teaserImage = teaserImage;%0A    %7D%0A%0A
     
@@ -1598,23 +1598,17 @@
      %22, 
-teaserI
+i
 mage=%22 +
@@ -1612,22 +1612,18 @@
 %22 + 
-teaserI
+i
 mage +%0A
+//
     

Rename teaserImage to image in Article