package com.shoutcast.stm.radio_nome.database.dao;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import com.shoutcast.stm.radio_nome.models.Social;
import com.google.gson.annotations.Expose;

@Entity(tableName = "social")
public class SocialEntity {

    @PrimaryKey
    public long social_id = System.currentTimeMillis();

    @Expose
    @ColumnInfo(name = "social_name")
    public String social_name = "";

    @Expose
    @ColumnInfo(name = "social_icon")
    public String social_icon = "";

    @Expose
    @ColumnInfo(name = "social_url")
    public String social_url = "";

    @Expose
    @ColumnInfo(name = "social_ext")
    public String social_ext = "";

    public SocialEntity() {
    }

    public Social original() {
        Social social = new Social();
        social.social_name = social_name;
        social.social_icon = social_icon;
        social.social_url = social_url;
        social.social_ext = social_ext;
        return social;
    }
}