package com.emonster.taroaichat.domain;

import java.util.Random;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;

public class TarotCardTestSamples {

    private static final Random random = new Random();
    private static final AtomicLong longCount = new AtomicLong(random.nextInt() + (2 * Integer.MAX_VALUE));
    private static final AtomicInteger intCount = new AtomicInteger(random.nextInt() + (2 * Short.MAX_VALUE));

    public static TarotCard getTarotCardSample1() {
        return new TarotCard()
            .id(1L)
            .name("name1")
            .cardNumber(1)
            .imageUrl("imageUrl1")
            .keywords("keywords1")
            .createdBy("createdBy1")
            .lastModifiedBy("lastModifiedBy1");
    }

    public static TarotCard getTarotCardSample2() {
        return new TarotCard()
            .id(2L)
            .name("name2")
            .cardNumber(2)
            .imageUrl("imageUrl2")
            .keywords("keywords2")
            .createdBy("createdBy2")
            .lastModifiedBy("lastModifiedBy2");
    }

    public static TarotCard getTarotCardRandomSampleGenerator() {
        return new TarotCard()
            .id(longCount.incrementAndGet())
            .name(UUID.randomUUID().toString())
            .cardNumber(intCount.incrementAndGet())
            .imageUrl(UUID.randomUUID().toString())
            .keywords(UUID.randomUUID().toString())
            .createdBy(UUID.randomUUID().toString())
            .lastModifiedBy(UUID.randomUUID().toString());
    }
}
