internal SearchResults( IKuzzleApi api, JObject request, SearchOptions options, Response response, int previouslyFetched = 0) { this.api = api; this.options = new SearchOptions(options); this.request = (JObject)request.DeepClone(); Aggregations = (JObject)response.Result["aggregations"]; Hits = (JArray)response.Result["hits"]; Total = (int)response.Result["total"]; Fetched = Hits.Count + previouslyFetched; ScrollId = (string)response.Result["scrollId"]; }
internal ServerController(IKuzzleApi api) : base(api) { }
internal AdminController(IKuzzleApi k) : base(k) { }
internal AuthController(IKuzzleApi api) : base(api) { }
internal BulkController(IKuzzleApi api) : base(api) { }
internal DocumentController(IKuzzleApi api) : base(api) { }
/// <summary> /// Constructor /// </summary> public KuzzleEventHandler(IKuzzleApi kuzzle) { this.kuzzle = kuzzle; }
internal RealtimeController(IKuzzleApi api) : base(api) { api.EventHandler.UnhandledResponse += NotificationsListener; api.NetworkProtocol.StateChanged += StateChangeListener; api.EventHandler.TokenExpired += TokenExpiredListener; }
internal BaseController(IKuzzleApi k) { api = k; }
internal IndexController(IKuzzleApi api) : base(api) { }
internal CollectionController(IKuzzleApi api) : base(api) { }