Class WriteRequest<T, U>
Base class for creating requests to write data.
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public abstract class WriteRequest<T, U> : Request<T, U>
Type Parameters
Name | Description |
---|---|
T | The type of the network request. |
U | The type of the network response. |
Constructors
| Improve this Doc View SourceWriteRequest(AbstractClient, String, ICache<T>, ISyncQueue, WritePolicy)
Initializes a new instance of the WriteRequest<T, U> class.
Declaration
public WriteRequest(AbstractClient client, string collection, ICache<T> cache, ISyncQueue queue, WritePolicy policy)
Parameters
Type | Name | Description |
---|---|---|
AbstractClient | client | Client that the user is logged in. |
System.String | collection | Collection name. |
ICache<T> | cache | Cache. |
ISyncQueue | queue | Synchronization queue. |
WritePolicy | policy | Write policy. |
Properties
| Improve this Doc View SourceCache
Gets the interface for operating with data store cache.
Declaration
public ICache<T> Cache { get; }
Property Value
Type | Description |
---|---|
ICache<T> | The instance implementing ICache<T> interface. |
Collection
Gets collection name for the request.
Declaration
public string Collection { get; }
Property Value
Type | Description |
---|---|
System.String | String value with collection name. |
Policy
Gets write policy for the request.
Declaration
public WritePolicy Policy { get; }
Property Value
Type | Description |
---|---|
WritePolicy | WritePolicy enum value containing write policy for the request. |
SyncQueue
Gets the interface for operating with sync queue.
Declaration
public ISyncQueue SyncQueue { get; }
Property Value
Type | Description |
---|---|
ISyncQueue | The instance implementing |
Methods
| Improve this Doc View SourcePrepareCacheSave(ref T)
Populates the entity by temporary id.
Declaration
protected string PrepareCacheSave(ref T entity)
Parameters
Type | Name | Description |
---|---|---|
T | entity | Entity. |
Returns
Type | Description |
---|---|
System.String | Temporary id. |