package com.pack.modeler.model;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
@Data
public class ActivityData {
    @Id
    @GeneratedValue
    Long id;

    String token;
    String link;

    String key;
    Integer count;

    String keySeparator;

    public static ActivityData of(String token, String link, String key, int count, String keySeparator){
        ActivityData ad = new ActivityData();

        ad.token = token;
        ad.link = link;
        ad.key = key;
        ad.count = count;
        ad.keySeparator = keySeparator;

        return ad;
    }
}
