private static FetchResultType TypeFromLocator(LinkedTextLocator locator) { switch (locator.Type) { case LinkedTextLocator.LocatorType.Folder: return FetchResultType.Folder; case LinkedTextLocator.LocatorType.Delimiter: return FetchResultType.Delimiter; case LinkedTextLocator.LocatorType.Translator: return FetchResultType.Translator; default: return FetchResultType.Text; } }
private FetchResult CloseSession(LinkedTextLocator textLocator) { this.Reset(); return new FetchResult(textLocator); }
public FetchResult(LinkedTextLocator result) { this.result = result; this.type = TypeFromLocator(result); }