public StartFolderSearchResponse StartFolderSearch(string SID) { query = new Query(); query.SetPath("webapi/entry.cgi"); NameValueCollection collection = new NameValueCollection(); collection["folder_path"] = Info.Path; collection["_sid"] = SID; query.BuildQueryWithParameters(FileStationSearch, FileStationAPI.APIVersions[FileStationSearch], "start", collection); request = new NetworkGetRequest(query.GetUri()); string jsonResponse = request.SendGetRequest(); StartFolderSearchResponse startResponse = APIResult.RetrieveResultsOfStartFolderNetworkResponse(jsonResponse); TaskID = startResponse.GetTaskID(); return(APIResult.RetrieveResultsOfStartFolderNetworkResponse(jsonResponse)); }
public static StartFolderSearchResponse RetrieveResultsOfStartFolderNetworkResponse(string response) { StartFolderSearchResponse NetworkResponse = JsonConvert.DeserializeObject <StartFolderSearchResponse>(response); return(NetworkResponse); }