本演示项目在Unity for Android Build中启用部分华为HMS和AGC服务,对应的类和函数的名称和用法相同。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

43 行
2.0 KiB

using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService.CloudDB
{
public class CloudDBZone_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.cloud.database.CloudDBZone";
}
public class CloudDBZone :HmsClass<CloudDBZone_Data>
{
public CloudDBZone (): base() { }
public CloudDBZoneConfig getCloudDBZoneConfig() {
return Call<CloudDBZoneConfig>("getCloudDBZoneConfig");
}
public Task executeUpsert(CloudDBZoneObject cloudDBZoneObject) {
return Call<Task>("executeUpsert", cloudDBZoneObject);
}
public Task executeUpsert(List objectList) {
return Call<Task>("executeUpsert", objectList);
}
public Task executeDelete(CloudDBZoneObject cloudDBZoneObject) {
return Call<Task>("executeDelete", cloudDBZoneObject);
}
public Task executeDelete(List objectList) {
return Call<Task>("executeDelete", objectList);
}
public Task executeQuery(CloudDBZoneQuery cloudDBZoneQuery, CloudDBZoneQuery.CloudDBZoneQueryPolicy queryPolicy) {
return Call<Task>("executeQuery", cloudDBZoneQuery, queryPolicy);
}
public Task executeAverageQuery(CloudDBZoneQuery cloudDBZoneQuery, string fieldName, CloudDBZoneQuery.CloudDBZoneQueryPolicy queryPolicy) {
return Call<Task>("executeAverageQuery", cloudDBZoneQuery, fieldName, queryPolicy);
}
public Task executeQueryUnsynced(CloudDBZoneQuery cloudDBZoneQuery) {
return Call<Task>("executeQueryUnsynced", cloudDBZoneQuery);
}
public Task runTransaction(Transaction.Function function) {
return Call<Task>("runTransaction", function);
}
public ListenerHandler subscribeSnapshot(CloudDBZoneQuery cloudDBZoneQuery, CloudDBZoneQuery.CloudDBZoneQueryPolicy queryPolicy, OnSnapshotListener listener) {
return Call<ListenerHandler>("subscribeSnapshot", cloudDBZoneQuery, queryPolicy, listener);
}
}
}