private async Task <Testcase> GetTestcaseAsync(int i, int serial) { Testcase testcase = new Testcase(); if (isSample) { testcase.Serial = samples[i].Serial; testcase.ProblemId = samples[i].ProblemId; testcase.In = samples[i].In; testcase.Out = samples[i].Out; } else { testcase = await HttpClientManager.ExecuteGetJsonAsync <Testcase>(string.Format(FIND_BY_PROBLEM_ID_TESTCASE, probrem.id, serial)); if (testcase.In.Contains("(terminated because of the limitation)")) { testcase.In = await HttpClientManager.ExecuteGetStringAsync(string.Format(FIND_BY_PROBLEM_ID_TESTCASE_ALT_IN, probrem.id, serial)); } if (testcase.Out.Contains("(terminated because of the limitation)")) { testcase.Out = await HttpClientManager.ExecuteGetStringAsync(string.Format(FIND_BY_PROBLEM_ID_TESTCASE_ALT_OUT, probrem.id, serial)); } } return(testcase); }