private IApiRequest GetDeltasRequest() { IApiRequest request = ApiRequestFactory.Current.CreateRequest("POST", "get_deltas", _manager.ApiToken); request.AddParam("handle", Handle); request.AddParam("rev", Rev.ToString()); return(request); }
private IApiRequest PushRequest() { JArray args = new JArray(); foreach (var table in _tables) { foreach (var change in table.Value.PendingChanges) { args.Add(change); } } IApiRequest request = ApiRequestFactory.Current.CreateRequest("POST", "put_delta", _manager.ApiToken); request.AddParam("handle", Handle); request.AddParam("rev", Rev.ToString()); request.AddParam("changes", args.ToString(Formatting.None)); return(request); }