react-native-ibm-mobilefirst-jsonstore
Version:
React Native SDK for IBM JSONStore. Works with IBM Mobile First
40 lines (33 loc) • 1.06 kB
JavaScript
/* Licensed Materials - Property of IBM
* 5725-I43 (C) Copyright IBM Corp. 2018. All Rights Reserved.
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*/
/* author - Yash Soni | yashsoni21@in.ibm.com */
/**
* This class contains Syncronization Policies for a JSONStore collection
*/
class JSONStoreSyncPolicy {
/**
* @ignore
*/
constructor(type) {
/**
* @type {string}
*/
this.type = type;
}
/**
* @return {JSONStoreSyncPolicy} - Downstream Sync Policy
*/
static get SYNC_DOWNSTREAM() { return new JSONStoreSyncPolicy("SYNC_DOWNSTREAM")};
/**
* @return {JSONStoreSyncPolicy} - Upstream Sync Policy
*/
static get SYNC_UPSTREAM() {return new JSONStoreSyncPolicy("SYNC_UPSTREAM")};
/**
* @return {JSONStoreSyncPolicy} - This is the default Sync Policy
*/
static get SYNC_NONE() {return new JSONStoreSyncPolicy("SYNC_NONE")};
}
export default JSONStoreSyncPolicy