package com.konifar.annict.model;

import com.github.gfx.android.orma.annotation.Column;
import com.github.gfx.android.orma.annotation.PrimaryKey;
import com.github.gfx.android.orma.annotation.Table;
import com.google.gson.annotations.SerializedName;

import org.parceler.Parcel;

import java.util.Date;

/**
 * https://annict.wikihub.io/wiki/api/records
 */
@Parcel
@Table
public class Record {

    @PrimaryKey(auto = false)
    @Column(indexed = true)
    @SerializedName("id")
    public long id;

    @Column
    @SerializedName("comment")
    public long comment;

    @Column
    @SerializedName("rating")
    public long rating;

    @Column
    @SerializedName("is_modified")
    public boolean isModified;

    @Column
    @SerializedName("likes_count")
    public int likesCount;

    @Column
    @SerializedName("comments_count")
    public int commentsCount;

    @Column
    @SerializedName("created_at")
    public Date createdAt;

    @Column
    @SerializedName("user")
    public User user;

    @Column(indexed = true)
    @SerializedName("work")
    public Work work;

    @Column(indexed = true)
    @SerializedName("episode")
    public Work episode;

    public Record() {
        //
    }

}

Create record model :building_construction: