package com.base.datarecovery.utils;

import java.util.ArrayList;
import java.util.List;

public class DocumentRecoveryStringManager {
    private static final List<String> documentRecoveryCopies = new ArrayList<>();
    private static int currentCopyIndex = 0;

    static {
        // 初始化并添加文案到列表
        documentRecoveryCopies.add("Lost a vital document? Our recovery service might be able to help.");
        documentRecoveryCopies.add("Can't find an important document? Try our recovery tool today.");
        documentRecoveryCopies.add("Accidentally deleted a document? Recover it with ease using our service.");
        documentRecoveryCopies.add("Don't panic over lost documents – our recovery feature is here to assist.");
        documentRecoveryCopies.add("Regain access to deleted documents with our simple recovery process.");
    }

    public static String getNextRecoveryCopy() {
        if (documentRecoveryCopies.isEmpty()) {
            return null; // 根据您的需要处理错误情况
        }
        String copy = documentRecoveryCopies.get(currentCopyIndex);
        currentCopyIndex = (currentCopyIndex + 1) % documentRecoveryCopies.size();
        return copy;
    }
}
