Newer
Older
bremer / src / main / kotlin / model / api / Request.kt
yhornisse on 6 Aug 2023 591 bytes refactor and add tag
/*
 * Copyright (c) 2023. yo-saito. All Rights Reserved.
 */

package net.piedpiper.bremer.model.api

import com.fasterxml.jackson.annotation.JsonProperty
import jakarta.validation.constraints.NotBlank

data class PlaylistRequest(
    @field:NotBlank
    val name: String = "",
)

data class PlaylistAudioRequest(
    @field:JsonProperty("audio_slugs")
    val audioSlugs: List<String> = emptyList()
)

data class TagRequest(
    @field:NotBlank
    val name: String = ""
)

data class TagAudioRequest(
    @field:JsonProperty("audio_slugs")
    val audioSlugs: List<String> = emptyList()
)