static private Harvest ( |
||
baseUri | ||
action | string | |
args | object>.Dictionary | |
username | string | |
password | string | |
Результат |
private HarvestResult harvestFromDateRange(string action, DateTime fromDate, DateTime untilDate) { var args = new Dictionary <string, object>(); args["from"] = fromDate.ToString(LRUtils.ISO_8061_FORMAT); args["until"] = untilDate.ToString(LRUtils.ISO_8061_FORMAT); return(LRUtils.Harvest(_baseUri, action, args)); }
private HarvestResult harvestFromDateBoundary(string action, string boundaryType, DateTime date) { return(LRUtils.Harvest(_baseUri, action, new Dictionary <string, object>() { { boundaryType, date.ToString(LRUtils.ISO_8061_FORMAT) } })); }
private GetRecordHarvestResult getRecord(string requestId, bool byDocId = false) { Console.WriteLine(_baseUri.AbsoluteUri); var args = new Dictionary <string, object>(); args["request_ID"] = requestId; if (byDocId) { args["by_doc_ID"] = true.ToString(); } var result = (GetRecordHarvestResult)LRUtils.Harvest(_baseUri, HarvesterActions.GetRecord, args); return(result); }
protected override ResumableResult getPage() { return(LRUtils.Harvest(this.BaseUri, this.Action, _Args, this.HttpUsername, this.HttpPassword)); }
public ListMetadataFormatsHarvestResult ListMetadataFormats() { return((ListMetadataFormatsHarvestResult)LRUtils.Harvest(_baseUri, HarvesterActions.ListMetadataFormats, null)); }
public ListIdentifiersHarvestResult ListIdentifiers() { return((ListIdentifiersHarvestResult)LRUtils.Harvest(_baseUri, HarvesterActions.ListIdentifiers, null)); }
public ListRecordsHarvestResult ListRecords() { return((ListRecordsHarvestResult)LRUtils.Harvest(_baseUri, HarvesterActions.ListRecords, null)); }