1 /*
2 * Copyright (c) 2022 Kaiserpfalz EDV-Service, Roland T. Lichti.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18 package de.kaiserpfalzedv.rpg.core.game;
19
20 import com.fasterxml.jackson.annotation.JsonInclude;
21 import de.kaiserpfalzedv.commons.core.resources.ResourceImpl;
22 import lombok.EqualsAndHashCode;
23 import lombok.Getter;
24 import lombok.NoArgsConstructor;
25 import lombok.ToString;
26 import lombok.experimental.SuperBuilder;
27 import lombok.extern.jackson.Jacksonized;
28 import org.eclipse.microprofile.openapi.annotations.media.Schema;
29
30 /**
31 * Campaign -- A campaign consisting of multiple RPG {@link Game}s.
32 *
33 * @author klenkes74 {@literal <rlichti@kaiserpfalz-edv.de>}
34 * @since 1.2.0 2021-02-06
35 */
36 @Jacksonized
37 @SuperBuilder(toBuilder = true)
38 @NoArgsConstructor
39 @Getter
40 @ToString
41 @EqualsAndHashCode(callSuper = true)
42 @JsonInclude(JsonInclude.Include.NON_ABSENT)
43 @Schema(name = "Campaign", description = "A campaign consisting of multiple games.")
44 public class Campaign extends ResourceImpl<CampaignData> {
45 public static String API_VERSION = "v1";
46 public static String KIND = "Campaign";
47 }