about summary refs log tree commit diff stats
path: root/apworld/client/vendor
Commit message (Expand)AuthorAgeFilesLines
* Game talks through CommonClient nowStar Rauchenberger2025-09-253-209/+187
* Move the client into the apworldStar Rauchenberger2025-09-252-0/+216
9' href='#n19'>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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.fourisland.instadisc.Database;

import com.sleepycat.persist.model.Entity;
import com.sleepycat.persist.model.PrimaryKey;
import java.util.HashMap;

/**
 *
 * @author hatkirby
 */
@Entity
public class Item {

    @PrimaryKey
    private Integer id;
    private String subscription;
    private String title;
    private String author;
    private String url;
    private HashMap<String, String> semantics;

    public Item() {
        semantics = new HashMap<String, String>();
    }

    public Integer getID() {
        return id;
    }

    public String getSubscription() {
        return subscription;
    }

    public String getTitle() {
        return title;
    }

    public String getAuthor() {
        return author;
    }

    public String getURL() {
        return url;
    }

    public HashMap<String, String> getSemantics() {
        return semantics;
    }

    public void setID(Integer id) {
        this.id = id;
    }

    public void setSubscription(String subscription) {
        this.subscription = subscription;
    }

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

    public void setAuthor(String author) {
        this.author = author;
    }

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

    public void setSemantics(HashMap<String, String> semantics) {
        this.semantics = semantics;
    }

    public String getSemantics(String key) {
        return semantics.get(key);
    }

    public void putSemantics(String key, String value) {
        semantics.put(key, value);
    }
}