Class ConsoleRemoteDataStore
When using the ConsoleRemoteDataStore, all data accumulated in LocalDataStore are simply ignored. This
is useful for debugging purposes and is not recommended for practical Sensus deployments since it provides no means of moving the data
off of the device.
Inheritance
System.Object
ConsoleRemoteDataStore
Assembly: SensusAndroid.dll
Syntax
public class ConsoleRemoteDataStore : RemoteDataStore
Constructors
ConsoleRemoteDataStore()
Declaration
public ConsoleRemoteDataStore()
Properties
CanRetrieveWrittenData
Declaration
public override bool CanRetrieveWrittenData { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
DisplayName
Declaration
public override string DisplayName { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
StorageDescription
Declaration
public override string StorageDescription { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Methods
DeletePushNotificationRequestAsync(Guid, CancellationToken)
Declaration
public override Task DeletePushNotificationRequestAsync(Guid backendKey, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Guid |
backendKey |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Overrides
DeletePushNotificationTokenAsync(CancellationToken)
Declaration
public override Task DeletePushNotificationTokenAsync(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Overrides
GetDatumAsync<T>(String, CancellationToken)
Declaration
public override Task<T> GetDatumAsync<T>(string datumKey, CancellationToken cancellationToken)
where T : Datum
Parameters
| Type |
Name |
Description |
| System.String |
datumKey |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<T> |
|
Type Parameters
Overrides
GetDatumKey(Datum)
Declaration
public override string GetDatumKey(Datum datum)
Parameters
| Type |
Name |
Description |
| Datum |
datum |
|
Returns
| Type |
Description |
| System.String |
|
Overrides
GetPushNotificationUpdatesAsync(CancellationToken)
Declaration
public override Task<List<PushNotificationUpdate>> GetPushNotificationUpdatesAsync(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Overrides
GetScriptAgentPolicyAsync(CancellationToken)
Declaration
public override Task<JObject> GetScriptAgentPolicyAsync(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<Newtonsoft.Json.Linq.JObject> |
|
Overrides
GetSensingAgentPolicyAsync(CancellationToken)
Declaration
public override Task<JObject> GetSensingAgentPolicyAsync(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<Newtonsoft.Json.Linq.JObject> |
|
Overrides
SendPushNotificationRequestAsync(PushNotificationRequest, CancellationToken)
Declaration
public override Task SendPushNotificationRequestAsync(PushNotificationRequest request, CancellationToken cancellationToken)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Overrides
SendPushNotificationTokenAsync(String, CancellationToken)
Declaration
public override Task SendPushNotificationTokenAsync(string token, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.String |
token |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Overrides
WriteDataStreamAsync(Stream, String, String, CancellationToken)
Declaration
public override Task WriteDataStreamAsync(Stream stream, string name, string contentType, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.IO.Stream |
stream |
|
| System.String |
name |
|
| System.String |
contentType |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Overrides
WriteDatumAsync(Datum, CancellationToken)
Declaration
public override Task WriteDatumAsync(Datum datum, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| Datum |
datum |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Overrides