Inheritance
System.Object
PaginationBaseService<T>
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: LightQuery.Client.dll
public class PaginationBaseService<T> : INotifyPropertyChanged, IDisposable
Type Parameters
Constructors
|
Improve this Doc
View Source
Declaration
public PaginationBaseService(string baseUrl, Func<string, CancellationToken, Task<HttpResponseMessage>> getHttpAsync, DefaultPaginationOptions options = null)
Parameters
| Type |
Name |
Description |
| System.String |
baseUrl |
|
| System.Func<System.String, System.Threading.CancellationToken, System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>> |
getHttpAsync |
|
| DefaultPaginationOptions |
options |
|
|
Improve this Doc
View Source
Declaration
public PaginationBaseService(string baseUrl, Func<string, Task<HttpResponseMessage>> getHttpAsync, DefaultPaginationOptions options = null)
Parameters
| Type |
Name |
Description |
| System.String |
baseUrl |
|
| System.Func<System.String, System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>> |
getHttpAsync |
|
| DefaultPaginationOptions |
options |
|
Properties
|
Improve this Doc
View Source
Declaration
public string BaseUrl { get; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Declaration
public int Page { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public int PageSize { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public IObservable<PaginationResult<T>> PaginationResult { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public IObservable<bool> RequestRunning { get; }
Property Value
| Type |
Description |
| System.IObservable<System.Boolean> |
|
|
Improve this Doc
View Source
Declaration
public bool SortDescending { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public string SortProperty { get; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Declaration
public bool ThenSortDescending { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public string ThenSortProperty { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
|
Improve this Doc
View Source
Declaration
|
Improve this Doc
View Source
Declaration
public void ForceRefresh()
|
Improve this Doc
View Source
Declaration
public string GetQueryParameter(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Declaration
public void RemoveQueryParameter(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
|
Improve this Doc
View Source
Declaration
public void SetQueryParameter(string name, string value = null)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.String |
value |
|
|
Improve this Doc
View Source
Declaration
public void SetSortProperty(string propertyName)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
|
Improve this Doc
View Source
Declaration
public void SetSortProperty<TKey>(Expression<Func<T, TKey>> sortProperty)
Parameters
| Type |
Name |
Description |
| System.Linq.Expressions.Expression<System.Func<T, TKey>> |
sortProperty |
|
Type Parameters
|
Improve this Doc
View Source
Declaration
public void SetThenSortProperty(string propertyName)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
|
Improve this Doc
View Source
Declaration
public void SetThenSortProperty<TKey>(Expression<Func<T, TKey>> sortProperty)
Parameters
| Type |
Name |
Description |
| System.Linq.Expressions.Expression<System.Func<T, TKey>> |
sortProperty |
|
Type Parameters
Events
|
Improve this Doc
View Source
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
Description |
| System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable