public PushFileState PushCheckFileExistence(string MachineID, string File) { NetString p = new NetString(); p.Data = File; NetInt32 pres; bool resb = SendReq <NetString, NetInt32>("api/pushy/checkfile/" + MachineID, Verb.POST, p, out pres, out res, 300); if (pres == null) { return(PushFileState.Error); } else { return((PushFileState)pres.Data); } }
public Push_Stdio_StdOut PushPopStdIO(string MachineID, string SessionID) { Push_Stdio_StdOut pres; NetString str = new NetString(); str.Data = SessionID; bool resb = SendReq <NetString, Push_Stdio_StdOut>("api/pushy/popstdiodata/" + MachineID, Verb.POST, str, out pres, out res, 300); if (resb == false) { return(null); } if (pres == null) { return(null); } else { return(pres); } }