コード例 #1
0
        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));
        }
コード例 #2
0
        public static StartFolderSearchResponse RetrieveResultsOfStartFolderNetworkResponse(string response)
        {
            StartFolderSearchResponse NetworkResponse = JsonConvert.DeserializeObject <StartFolderSearchResponse>(response);

            return(NetworkResponse);
        }