void BuildBatchQuery(UriBuilder builder, SettingBatchFilter options) { if (!string.IsNullOrEmpty(options.Key)) { builder.AppendQuery(KeyQueryFilter, options.Key); } if (!string.IsNullOrEmpty(options.BatchLink)) { builder.AppendQuery("after", options.BatchLink); } if (options.Label != null) { if (options.Label == string.Empty) { options.Label = "\0"; } builder.AppendQuery(LabelQueryFilter, options.Label); } if (options.Fields != SettingFields.All) { var filter = (options.Fields).ToString().ToLower(); builder.AppendQuery(FieldsQueryFilter, filter); } }
Uri BuildUriForRevisions(SettingBatchFilter options) { var builder = new UriBuilder(_baseUri); builder.Path = RevisionsRoute; BuildBatchQuery(builder, options); return(builder.Uri); }