public string GetJobStatusByJobListID(int jobListID) { if (clientKey == "") return null; try { AsyncClientServerJobStatusRequestMessage msg = new AsyncClientServerJobStatusRequestMessage(); msg.clientKey = this.clientKey; msg.jobListID = jobListID; asyncServerCommSender.SendRequest(msg); return msg.msgID; } catch (Exception) { return null; } }
public string GetJobStatusByJobIDList(List<int> jobIDList) { if (clientKey == "") return null; try { AsyncClientServerJobStatusRequestMessage msg = new AsyncClientServerJobStatusRequestMessage(); msg.clientKey = this.clientKey; foreach (int jobID in jobIDList) { msg.jobIDList.Add(jobID); } asyncServerCommSender.SendRequest(msg); return msg.msgID; } catch (Exception) { return null; } }