using UnityEngine; using System.Collections.Generic; namespace HuaweiService.CloudDB { public class AGConnectCloudDB_Data : IHmsBaseClass{ public string name => "com.huawei.agconnect.cloud.database.AGConnectCloudDB"; } public class AGConnectCloudDB :HmsClass { public AGConnectCloudDB (): base() { } public static void initialize(Context context) { CallStatic("initialize", context); } public static AGConnectCloudDB getInstance() { return CallStatic("getInstance"); } public static AGConnectCloudDB getInstance(AGConnectInstance connectInstance, Auth.AGConnectAuth auth) { return CallStatic("getInstance", connectInstance, auth); } public Task setUserKey(string userKey, string userReKey) { return Call("setUserKey", userKey, userReKey); } public Task setUserKey(string userKey, string userReKey, bool needStrongCheck) { return Call("setUserKey", userKey, userReKey, needStrongCheck); } public Task updateDataEncryptionKey() { return Call("updateDataEncryptionKey"); } public void addDataEncryptionKeyListener(OnDataEncryptionKeyChangeListener dataEncryptionKeyListener) { Call("addDataEncryptionKeyListener", dataEncryptionKeyListener); } public void addEventListener(EventListener eventListener) { Call("addEventListener", eventListener); } public void createObjectType(ObjectTypeInfo objectTypeInfo) { Call("createObjectType", objectTypeInfo); } public List getCloudDBZoneConfigs() { return Call("getCloudDBZoneConfigs"); } public CloudDBZone openCloudDBZone(CloudDBZoneConfig config, bool isAllowToCreate) { return Call("openCloudDBZone", config, isAllowToCreate); } public Task openCloudDBZone2(CloudDBZoneConfig config, bool isAllowToCreate) { return Call("openCloudDBZone2", config, isAllowToCreate); } public void closeCloudDBZone(CloudDBZone zone) { Call("closeCloudDBZone", zone); } public void deleteCloudDBZone(string zoneName) { Call("deleteCloudDBZone", zoneName); } public void enableNetwork(string zoneName) { Call("enableNetwork", zoneName); } public void disableNetwork(string zoneName) { Call("disableNetwork", zoneName); } public class EventListenerData : IHmsBaseListener { public string name => "com.huawei.agconnect.cloud.database.AGConnectCloudDB$EventListener"; public string buildName => ""; } public class EventListener : HmsListener { public virtual void onEvent(EventType eventType) { Call("onEvent", eventType); } public void onEvent(AndroidJavaObject eventType){ onEvent(HmsUtil.GetHmsBase(eventType)); } } public class OnDataEncryptionKeyChangeListenerData : IHmsBaseListener { public string name => "com.huawei.agconnect.cloud.database.AGConnectCloudDB$OnDataEncryptionKeyChangeListener"; public string buildName => ""; } public class OnDataEncryptionKeyChangeListener : HmsListener { public virtual bool needFetchDataEncryptionKey() { return Call("needFetchDataEncryptionKey"); } } public class EventType_Data : IHmsBaseClass{ public string name => "com.huawei.agconnect.cloud.database.AGConnectCloudDB$EventType"; } public class EventType :HmsClass { public static EventType USER_KEY_CHANGED => HmsUtil.GetStaticValue("USER_KEY_CHANGED"); public EventType (): base() { } } } }