메소드 | 설명 | |
---|---|---|
GetAllConnections ( string name = null, string sinceId = null, int limit = MaxLimit ) : Task
|
Get all connections from current instance up to a limit (max 100).
|
|
GetConnections ( string apiClientId = null, string name = null, string sinceId = null, int limit = MaxLimit ) : Task
|
Get currently connected API client connections up to a limit (max 100).
|
|
GetHistory ( string sinceId = null, System.DateTime sinceTime = null, int limit = MaxLimit, DataObjectOrder order = DataObjectOrder.Ascending ) : Task
|
Get a history of notifications of current API client. History items are stored for 24 hours.
|
|
GetSubscriptions ( string apiClientId = null, string sessionId = null, string uuid = null ) : Task
|
Get API client subscriptions.
|
|
RealTimeSyncSyncanoClient ( SyncServerClient syncanoClient ) : System | ||
SendNotification ( string topic, object>.Dictionary |
||
SendNotification ( string apiClientId = null, string uuid = null, object>.Dictionary |
Sends custom notification to API client through Sync Server. If uuid is specified - will only send to this specific instance.
|
|
SubscribeCollection ( string projectId, string collectionId = null, string collectionKey = null, Context context = Context.Client ) : Task |
Subscribe to collection level notifications within a specified project.
|
|
SubscribeProject ( string projectId, Context context = Context.Client ) : Task |
Subscribe to project level notifications - will get all notifications in contained collections.
|
|
UnsubscribeCollection ( string projectId, string collectionId = null, string collectionKey = null ) : Task |
Unsubscribe from a collection within a specified project. Unsubscribing will work in context that it was originally created for.
|
|
UnsubscribeProject ( string projectId ) : Task |
Unsubscribe from a project. Unsubscribing will work in context that it was originally created for.
|
|
UpdateConnection ( string uuid, string name = null, string state = null, string apiClientId = null ) : Task |
Updates specified API client connection info.
|
public GetAllConnections ( string name = null, string sinceId = null, int limit = MaxLimit ) : Task
|
||
name | string | If specified, will only return connections of specified name. |
sinceId | string | If specified, will only return data created after specified uuid (newer). |
limit | int | Maximum number of API client connections to get. Default and max: 100. |
리턴 | Task
|
public GetConnections ( string apiClientId = null, string name = null, string sinceId = null, int limit = MaxLimit ) : Task
|
||
apiClientId | string | API client id. If not specified, will get connections for current API client. |
name | string | If specified, will only return connections of specified name. |
sinceId | string | If specified, will only return data created after specified uuid (newer). |
limit | int | Maximum number of API client connections to get. Default and max: 100. |
리턴 | Task
|
public GetHistory ( string sinceId = null, System.DateTime sinceTime = null, int limit = MaxLimit, DataObjectOrder order = DataObjectOrder.Ascending ) : Task
|
||
sinceId | string | If specified, will only return data with id higher than since_id (newer). |
sinceTime | System.DateTime | String with date. If specified, will only return data with timestamp after specified value (newer). |
limit | int | Maximum number of history items to get. Default and max: 100. |
order | DataObjectOrder | Order of data that will be returned. |
리턴 | Task
|
public GetSubscriptions ( string apiClientId = null, string sessionId = null, string uuid = null ) : Task
|
||
apiClientId | string | API client id defining client. If not present, gets subscriptions for current API client. |
sessionId | string | Session id associated with API client. If present, gets subscriptions associated with specified API client's session. |
uuid | string | Connection UUID. If present, gets subscriptions associated with specified API client's connection. |
리턴 | Task
|
public RealTimeSyncSyncanoClient ( SyncServerClient syncanoClient ) : System | ||
syncanoClient | SyncServerClient | |
리턴 | System |
public SendNotification ( string topic, object>.Dictionary |
||
topic | string | |
additional | object>.Dictionary | |
리턴 | Task |
public SendNotification ( string apiClientId = null, string uuid = null, object>.Dictionary |
||
apiClientId | string | Destination API client id. If not specified, will query current API client's connections. |
uuid | string | UUID of specified API client's connection. If not specified, will send a broadcast to all specified API client's connections. |
additional | object>.Dictionary | Any number of additional parameters will be sent as well into data structure. |
리턴 | Task |
public SubscribeCollection ( string projectId, string collectionId = null, string collectionKey = null, Context context = Context.Client ) : Task |
||
projectId | string | Project id. |
collectionId | string | Collection id defining collection. |
collectionKey | string | Collection key defining collection. |
context | Context | Context to subscribe within. |
리턴 | Task |
public SubscribeProject ( string projectId, Context context = Context.Client ) : Task |
||
projectId | string | Project id. |
context | Context | Context to subscribe within. |
리턴 | Task |
public UnsubscribeCollection ( string projectId, string collectionId = null, string collectionKey = null ) : Task |
||
projectId | string | Project id. |
collectionId | string | Collection id defining collection. |
collectionKey | string | Collection key defining collection. |
리턴 | Task |
public UnsubscribeProject ( string projectId ) : Task |
||
projectId | string | Project id. |
리턴 | Task |
public UpdateConnection ( string uuid, string name = null, string state = null, string apiClientId = null ) : Task |
||
uuid | string | Connection UUID. |
name | string | New name to set. |
state | string | New state to set. |
apiClientId | string | API client id. If not specified, will update current API client connections. |
리턴 | Task |