siyao
3 年前
当前提交
fb6fa719
共有 10 个文件被更改,包括 236 次插入 和 149 次删除
-
26Assets/HuaweiService/cloud_db/AGConnectCloudDB.cs
-
12Assets/HuaweiService/cloud_db/CloudDBZone.cs
-
6Assets/HuaweiService/cloud_db/CloudDBZoneConfig.cs
-
186Assets/HuaweiService/cloud_db/CloudDBZoneQuery.cs
-
23Assets/HuaweiService/cloud_db/OnSnapshotListener.cs
-
55Assets/HuaweiService/cloud_db/Transaction.cs
-
21Assets/HuaweiServiceDemo/HuaweiCloudDBDemo/Scripts/CloudDBTest.cs
-
1Assets/Plugins/Android/launcherTemplate.gradle
-
18Assets/HuaweiService/cloud_db/EntireEncrypted.cs
-
37Assets/HuaweiService/cloud_db/FieldType.cs
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Collections.Generic; |
|||
namespace HuaweiService.CloudDB { |
|||
public delegate bool apply (Transaction t); |
|||
|
|||
public class Transaction_Data : IHmsBaseClass { |
|||
namespace HuaweiService.CloudDB |
|||
{ |
|||
public class Transaction_Data : IHmsBaseClass{ |
|||
public class Transaction : HmsClass<Transaction_Data> { |
|||
public Transaction () { |
|||
public class Transaction :HmsClass<Transaction_Data> |
|||
{ |
|||
public Transaction (): base() { } |
|||
public List executeQuery(CloudDBZoneQuery arg0) { |
|||
return Call<List>("executeQuery", arg0); |
|||
public List executeQuery (CloudDBZoneQuery arg0) { |
|||
return Call<List> ("executeQuery", arg0); |
|||
public Transaction executeUpsert(List arg0) { |
|||
return Call<Transaction>("executeUpsert", arg0); |
|||
public Transaction executeUpsert<T> (List<T> arg0) where T : IDatabaseModel { |
|||
return Call<Transaction> ("executeUpsert", arg0); |
|||
public Transaction executeDelete(List arg0) { |
|||
return Call<Transaction>("executeDelete", arg0); |
|||
public Transaction executeDelete (List arg0) { |
|||
return Call<Transaction> ("executeDelete", arg0); |
|||
} |
|||
public bool isTransactionEmpty () { |
|||
return Call<bool> ("isTransactionEmpty"); |
|||
|
|||
public class FunctionData : IHmsBaseListener |
|||
{ |
|||
public string name => "com.huawei.agconnect.cloud.database.Transaction$Function"; |
|||
public string buildName => ""; |
|||
|
|||
public class Function : AndroidJavaProxy { |
|||
private apply cb; |
|||
|
|||
private static string _name = "com.huawei.agconnect.cloud.database.Transaction$Function"; |
|||
public Function (apply cb) : base (_name) { |
|||
this.cb = cb; |
|||
public class Function : HmsListener<FunctionData> |
|||
{ |
|||
|
|||
public virtual bool apply(Transaction arg0) { |
|||
return Call<bool>("apply", arg0); |
|||
public bool apply (AndroidJavaObject arg0) { |
|||
Type type = typeof (Transaction); |
|||
Transaction input = (Transaction) Activator.CreateInstance (type); |
|||
input.obj = arg0; |
|||
return this.cb.Invoke (input); |
|||
|
|||
public bool apply(AndroidJavaObject arg0){ |
|||
return apply(HmsUtil.GetHmsBase<Transaction>(arg0)); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService.CloudDB |
|||
{ |
|||
public class EntireEncryptedData : IHmsBaseListener |
|||
{ |
|||
public string name => "com.huawei.agconnect.cloud.database.annotations.EntireEncrypted"; |
|||
public string buildName => ""; |
|||
} |
|||
public class EntireEncrypted : HmsListener<EntireEncryptedData> |
|||
{ |
|||
|
|||
public virtual bool isEncrypted() { |
|||
return Call<bool>("isEncrypted"); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService.CloudDB |
|||
{ |
|||
public class FieldType_Data : IHmsBaseClass{ |
|||
public string name => "com.huawei.agconnect.cloud.database.FieldType"; |
|||
} |
|||
public class FieldType :HmsClass<FieldType_Data> |
|||
{ |
|||
public static FieldType b => HmsUtil.GetStaticValue<FieldType>("b"); |
|||
|
|||
public static FieldType c => HmsUtil.GetStaticValue<FieldType>("c"); |
|||
|
|||
public static FieldType d => HmsUtil.GetStaticValue<FieldType>("d"); |
|||
|
|||
public static FieldType e => HmsUtil.GetStaticValue<FieldType>("e"); |
|||
|
|||
public static FieldType f => HmsUtil.GetStaticValue<FieldType>("f"); |
|||
|
|||
public static FieldType g => HmsUtil.GetStaticValue<FieldType>("g"); |
|||
|
|||
public static FieldType h => HmsUtil.GetStaticValue<FieldType>("h"); |
|||
|
|||
public static FieldType i => HmsUtil.GetStaticValue<FieldType>("i"); |
|||
|
|||
public static FieldType j => HmsUtil.GetStaticValue<FieldType>("j"); |
|||
|
|||
public static FieldType k => HmsUtil.GetStaticValue<FieldType>("k"); |
|||
|
|||
public static FieldType l => HmsUtil.GetStaticValue<FieldType>("l"); |
|||
|
|||
public static FieldType m => HmsUtil.GetStaticValue<FieldType>("m"); |
|||
|
|||
public FieldType (): base() { } |
|||
} |
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue