package com.telephoners.krakyournet.ctf.objects.tasks;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.telephoners.krakyournet.ctf.objects.Flag;
import org.mongodb.morphia.annotations.Entity;

import java.util.List;

@Entity("tasks")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class WebTask extends Task
{
    private String url;

    public WebTask(String name, int level, List<Flag> flags, String url)
    {
        super(name, level, flags);
        this.url = url;
    }

    public WebTask()
    {
    }

    public String getUrl()
    {
        return url;
    }

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