package roomapi

import (
	"context"

	"hyapp/services/gateway-service/internal/appconfig"
)

type giftQuantityPresetReader interface {
	GiftQuantityPresets(ctx context.Context, appCode string) ([]int32, error)
}

func (h *Handler) roomGiftQuantityPresets(ctx context.Context, appCode string) ([]int32, error) {
	if h.giftQuantityReader == nil {
		return appconfig.DefaultGiftQuantityPresets(), nil
	}
	return h.giftQuantityReader.GiftQuantityPresets(ctx, appCode)
}
