package ua.kpi.ecampus.model.pojo; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; /** * Represents Item basic entity which used in requests. * POJO class for convenient GSON serialization. * <p> * Created by Administrator on 04.04.2016. */ public class Item { @SerializedName("id") @Expose private Integer id; @SerializedName("name") @Expose private String name; public Item(int id, String name) { this.id = id; this.name = name; } /** * @return The id */ public Integer getId() { return id; } /** * @param id The id */ public void setId(Integer id) { this.id = id; } /** * @return The name */ public String getName() { return name; } /** * @param name The name */ public void setName(String name) { this.name = name; } }