static void ListJobItems(TranslationJobStatus jobStatus, ItemTypes type) { Console.WriteLine("List items of types " + type.ToString()); IEnumerable<TranslationItemInfo> items = jobStatus.GetItems(type); cc.ExecuteQuery(); foreach (TranslationItemInfo item in items) { Console.WriteLine("TranslationId: " + item.TranslationId + "; Succeeded: " + item.Succeeded + "\n" + "InputFile: " + item.InputFile + "; OutputFile: " + item.OutputFile + "\n" + "Canceled: " + item.Canceled + "; Failed: " + item.Failed + "\n" + "InProgress: " + item.InProgress + "; NotStarted: " + item.NotStarted + "\n" + "; ErrorMessage " + item.ErrorMessage); } }
static void ListJobItems(TranslationJobStatus jobStatus, ItemTypes type) { Console.WriteLine("List items of types " + type.ToString()); IEnumerable <TranslationItemInfo> items = jobStatus.GetItems(type); foreach (TranslationItemInfo item in items) { Console.WriteLine("TranslationId: " + item.TranslationId + "; Succeeded: " + item.Succeeded + "\n" + "InputFile: " + item.InputFile + "; OutputFile: " + item.OutputFile + "\n" + "Canceled: " + item.Canceled + "; Failed: " + item.Failed + "\n" + "InProgress: " + item.InProgress + "; NotStarted: " + item.NotStarted + "\n" + "; ErrorMessage " + item.ErrorMessage); } }
private string ListJobItems(TranslationJobStatus jobStatus, ItemTypes type) { string result = ""; result += "List items of types " + type.ToString() + "\n"; IEnumerable <TranslationItemInfo> items = jobStatus.GetItems(type); cc.ExecuteQuery(); foreach (TranslationItemInfo item in items) { result += "TranslationId: " + item.TranslationId + "; Succeeded: " + item.Succeeded + "\n" + " InputFile: " + item.InputFile + "; OutputFile: " + item.OutputFile + "\n" + " Canceled: " + item.Canceled + "; Failed: " + item.Failed + "\n" + " InProgress: " + item.InProgress + "; NotStarted: " + item.NotStarted + "\n" + "; ErrorMessage " + item.ErrorMessage; } return(result); }
private string ListJobItems(TranslationJobStatus jobStatus, ItemTypes type) { string result = ""; result += "List items of types " + type.ToString() + "\n"; IEnumerable<TranslationItemInfo> items = jobStatus.GetItems(type); cc.ExecuteQuery(); foreach (TranslationItemInfo item in items) { result += "TranslationId: " + item.TranslationId + "; Succeeded: " + item.Succeeded + "\n" + " InputFile: " + item.InputFile + "; OutputFile: " + item.OutputFile + "\n" + " Canceled: " + item.Canceled + "; Failed: " + item.Failed + "\n" + " InProgress: " + item.InProgress + "; NotStarted: " + item.NotStarted + "\n" + "; ErrorMessage " + item.ErrorMessage; } return result; }