<gh_stars>0
package com.example.cricket.core.news.web;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.example.cricket.base.BaseRequest;

public class NewsBaseReq extends BaseRequest 
{

    @NotNull
    private String name;

    @NotNull
    private String content;

    @NotEmpty
    private List<@Valid Id> teams;


    public String getName() 
    {
        return name;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getContent() 
    {
        return content;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public List<Id> getTeams() 
    {
        return teams;
    }

    public void setTeams(List<Id> teams) 
    {
        this.teams = teams;
    }
}
