package kz.konturai.parser.dto;

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

public class SocialMediaCredentialsRequest {

    @NotBlank(message = "Platform is required")
    private String platform;

    @NotNull(message = "Credentials are required")
    @JsonProperty("credentials")
    private Object credentials; // Может быть String (токен) или Object (JSON объект для Telegram и др.)

    public SocialMediaCredentialsRequest() {
    }

    public SocialMediaCredentialsRequest(String platform, Object credentials) {
        this.platform = platform;
        this.credentials = credentials;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public Object getCredentials() {
        return credentials;
    }

    public void setCredentials(Object credentials) {
        this.credentials = credentials;
    }
}
