@@ -0,0 +1,2701 @@
+package com.mamewo.podplayer0.db;%0A%0Aimport java.io.Serializable;%0Aimport java.text.ParseException;%0Aimport java.text.SimpleDateFormat;%0Aimport java.text.DateFormat;%0Aimport java.util.Date;%0Aimport java.util.Locale;%0A%0Aimport io.realm.RealmModel;%0Aimport io.realm.annotations.RealmClass;%0Aimport io.realm.annotations.Index;%0A    %0A@RealmClass%0Apublic class EpisodeRealm%0A    implements RealmModel,%0A               Serializable%0A%7B%0A    static final String DATE_PATTERN = %22EEE, dd MMM yyyy HH:mm:ss Z%22;%0A    static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat(DATE_PATTERN, Locale.US);%0A%0A    private int id;%0A    private PodcastRealm podcast;%0A    @Index private String url;%0A    private String title;%0A    private String pubdatestr;%0A    private String link;%0A    private Date pubdate;%0A    private int occurIndex;%0A%0A    public EpisodeRealm()%7B%0A        id = 0;%0A        podcast = null;%0A        url = null;%0A        title = null;%0A        pubdatestr = null;%0A        link = null;%0A        pubdate = null;%0A    %7D%0A%0A    public int getId()%7B%0A        return id;%0A    %7D%0A%0A    public void setId(int id)%7B%0A        this.id = id;%0A    %7D%0A%0A    public PodcastRealm getPodcast()%7B%0A        return podcast;%0A    %7D%0A%0A    public void setPodcast(PodcastRealm info)%7B%0A        this.podcast = info;%0A    %7D%0A%0A    public String getURL()%7B%0A        return url;%0A    %7D%0A%0A    public void setURL(String url)%7B%0A        this.url = url;%0A    %7D%0A%0A    public String getTitle()%7B%0A        return title;%0A    %7D%0A%0A    public void setTitle(String title)%7B%0A        this.title = title;%0A    %7D%0A%0A    public String getPubdateStr(DateFormat dateFormat)%7B%0A        if(null != pubdate)%7B%0A            return pubdatestr;%0A        %7D%0A        synchronized(dateFormat)%7B%0A            return dateFormat.format(pubdate);%0A        %7D%0A    %7D%0A%0A    public void setPubdateStr(String str)%7B%0A        this.pubdatestr = str;%0A        try%7B%0A            synchronized(DATE_FORMAT) %7B%0A                pubdate = DATE_FORMAT.parse(str);%0A            %7D%0A        %7D%0A        catch(ParseException e)%7B%0A            pubdate = null;%0A        %7D%0A    %7D%0A%0A    public Date getPubdate()%7B%0A        if(null != pubdate)%7B%0A            return pubdate;%0A        %7D%0A        try%7B%0A            synchronized(DATE_FORMAT) %7B%0A                pubdate = DATE_FORMAT.parse(pubdatestr);%0A            %7D%0A        %7D%0A        catch(ParseException e)%7B%0A            pubdate = null;%0A        %7D%0A        return pubdate;%0A    %7D%0A%0A    public void setPubdate(Date pubdate)%7B%0A        this.pubdate = pubdate;%0A    %7D%0A%0A    public String getLink()%7B%0A        return link;%0A    %7D%0A%0A    public void setLink(String link)%7B%0A        this.link = link;%0A    %7D%0A%0A    public int getOccurIndex()%7B%0A        return occurIndex;%0A    %7D%0A%0A    public void setOccurIndex(int index)%7B%0A        this.occurIndex = index;%0A    %7D%0A%7D%0A

add file