package fr.titionfire.ffsaf.rest.from;

import jakarta.ws.rs.FormParam;
import lombok.Getter;
import lombok.ToString;
import org.eclipse.microprofile.openapi.annotations.media.Schema;

@ToString
@Getter
public class PartClubForm {
    @FormParam("id")
    @Schema(description = "Identifiant du club", example = "1", required = true)
    private String id = null;

    @FormParam("contact")
    @Schema(description = "Les contacts du club", example = "{\"SITE\": \"www.test.com\", \"COURRIEL\": \"test@test.com\"}", required = true)
    private String contact = null;

    @FormParam("training_location")
    @Schema(description = "Liste des lieux d'entraînement", example = "[{\"text\":\"addr 1\",\"lng\":2.24654,\"lat\":52.4868658},{\"text\":\"addr 2\",\"lng\":2.88654,\"lat\":52.7865456}]", required = true)
    private String training_location = null;

    @FormParam("training_day_time")
    @Schema(description = "Liste des jours et horaires d'entraînement (jours 0-6, 0=>lundi) (temps en minute depuis 00:00, 122=>2h02)", example = "[{\"day\":0,\"time_start\":164,\"time_end\":240},{\"day\":3,\"time_start\":124,\"time_end\":250}]", required = true)
    private String training_day_time = null;

    @FormParam("contact_intern")
    @Schema(description = "Contact interne du club", example = "john.doe@test.com")
    private String contact_intern = null;

    @FormParam("address")
    @Schema(description = "Adresse postale du club", example = "1 rue de l'exemple, 75000 Paris", required = true)
    private String address = null;
}
