package com.sebastian.sokolowski.auctionhunter.database.models;

/**
 * Created by Sebastian Sokołowski on 01.03.17.
 */

public class TargetItem {
    private Offertype offertype;
    private String url;
    private String name;
    private String imageUrl;
    private String price;
    private String priceFull;
    private String priceBid;
    private String when;

    public Offertype getOffertype() {
        return offertype;
    }

    public void setOffertype(Offertype offertype) {
        this.offertype = offertype;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPriceFull() {
        return priceFull;
    }

    public void setPriceFull(String priceFull) {
        this.priceFull = priceFull;
    }

    public String getPriceBid() {
        return priceBid;
    }

    public void setPriceBid(String priceBid) {
        this.priceBid = priceBid;
    }

    public String getWhen() {
        return when;
    }

    public void setWhen(String when) {
        this.when = when;
    }

    public enum Offertype {BUY_NOW, AUCTION, BOTH}
}

@@ -58,16 +58,86 @@
 odels;%0A%0A
+import io.realm.RealmObject;%0Aimport io.realm.annotations.PrimaryKey;%0A%0A
 /**%0A * C
@@ -209,17 +209,77 @@
 getItem 
-%7B
+extends RealmObject %7B%0A    @PrimaryKey%0A    private Integer id;
 %0A    pri
@@ -1697,11 +1697,131 @@
 N, BOTH%7D
+%0A%0A    public Integer getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(Integer id) %7B%0A        this.id = id;%0A    %7D
 %0A%7D%0A

Add field id to TargetItem