package inji.utils;

public class TestDataReader {
    public static String readData(String key) {
        return getValueForKey(key);
    }

    //ToDo - Need to remove this once path issue is fixed on device farm
    private static String getValueForKey(String key) {
        switch (key) {
            case "externalemail":
                return "Resident_AddIdentity_ValidParam_smoke_Pos@mosip.net";
            case "emailsForBackupAndRestore":
                return UinGenerationUtil.getRandomEmails("Emails.json");
            case "passcode":
                return "111111";
            case "otp":
                return "111111";
            case "invalidOtp":
                return "666666";
            case "newuin":
                return "8671546927";
            case "revokevid":
                return "6205860394830280";
            case "vid":
                return UinGenerationUtil.getRandomVid();
            case "newaid":
                return "10001112180007620240217011225";
            case "invalidaid":
                return "10004101950000920240314061837";
            case "invalidpasscode":
                return "123456";
            case "invaliduin":
                return "1234567891";
            case "fullName":
                return "TEST_FULLNAMEeng";
            case "idType":
                return "MOSIP National ID";
            case "gender":
                return "MLEeng";
            case "genderVidEsignet":
                return "MLE";
            case "status":
                return "Valid";
            case "phoneNumber":
                return "9876543210";
            case "generatedOn":
                return "13/12/2023";
            case "dateOfBirth":
                return "01/01/1996";
            case "dateOfBirthForVidEsignet":
                return "1996/01/01";
            case "aid":
                return UinGenerationUtil.getRandomAidData();
            case "emailPassword":
                return "Hello@98";
            case "denyEmailPassword":
                return "Hello@988";
            case "denyEmailId":
                return UinGenerationUtil.getRandomEmails("EmailsDenyPermission.json");
            case "noBackupMail":
                return UinGenerationUtil.getRandomEmails("NoBackupEmails.json");
            case "setExcludedGroups":
                return "AVT,PVT";
            case "uin":
                return UinGenerationUtil.getRandomUin();
            case "uin2":
                return "2162743612";
            case "uin2FullName":
                return "TEST_FULLNAMEeng";
            case "newEnv":
                return "https://api.qa-upgrade-f1.mosip.net";
            case "injiEnv":
                return "https://api.qa-inji1.mosip.net";
            case "invalidenv":
                return "https://api.dev3.mosip";
            case "fullNameSunbird":
                return "automationtest3";
            case "policyNameSunbird":
                return "automationtest3";
            case "policyNumberSunbird":
                return "1207205246";
            case "idTypeSunbird":
                return "Health Insurance";
            case "idTypeSunbirdHindi":
                return "Health Insurance";
            case "phoneNumberSunbird":
                return "0123456789";
            case "dateOfBirthSunbird":
                return "2024-01-01";
            case "genderValueSunbird":
                return "Male";
            case "emailIdValueSunbird":
                return "abcd@gmail.com";
            case "statusValueSunbird":
                return "Valid";
            case "statusValueSunbirdForVaild":
                return "Valid";
            case "statusForEsignet":
                return "Valid";
            case "isDeviceFarmRun":
                return "true";
            case "MockVc":
                return "9261481024";
            case "Mock":
                return "1231231231";
            case "idTypeForMobileDrivingLicense":
                return "Mobile Driving License";
            default:
                return "Key not found";
        }
    }
}
