浏览代码

mark obsolete

/unity2020
siyao 3 年前
当前提交
7699bdb7
共有 5 个文件被更改,包括 50 次插入0 次删除
  1. 4
      Assets/HuaweiService/Auth/EmailAuthProvider.cs
  2. 3
      Assets/HuaweiService/Auth/PhoneAuthProvider.cs
  3. 3
      Assets/HuaweiService/base/AGConnectServicesConfig.cs
  4. 38
      Assets/HuaweiService/cloud_db/AGConnectCloudDB.cs
  5. 2
      Assets/HuaweiService/cloud_storage/AGCStorageManagement.cs

4
Assets/HuaweiService/Auth/EmailAuthProvider.cs


using System;
using UnityEngine;
using System.Collections.Generic;
using HuaweiService;

public class EmailAuthProvider_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.auth.EmailAuthProvider";
}
public class EmailAuthProvider :HmsClass<EmailAuthProvider_Data>
{
public EmailAuthProvider (): base() { }

public static AGConnectAuthCredential credentialWithVerifyCode(string arg0, string arg1, string arg2) {
return CallStatic<AGConnectAuthCredential>("credentialWithVerifyCode", arg0, arg1, arg2);
}
[Obsolete("Method is obsolete.", false)]
[Obsolete("Method is obsolete.", false)]
public static void verifyEmailCode(string arg0, VerifyCodeSettings arg1, OnVerifyCodeCallBack arg2) {
CallStatic("verifyEmailCode", arg0, arg1, arg2);
}

3
Assets/HuaweiService/Auth/PhoneAuthProvider.cs


using System;
using UnityEngine;
using System.Collections.Generic;
using HuaweiService;

public static AGConnectAuthCredential credentialWithPassword(string arg0, string arg1, string arg2) {
return CallStatic<AGConnectAuthCredential>("credentialWithPassword", arg0, arg1, arg2);
}
[Obsolete("Method is obsolete.", false)]
[Obsolete("Method is obsolete.", false)]
public static void verifyPhoneCode(string arg0, string arg1, VerifyCodeSettings arg2, OnVerifyCodeCallBack arg3) {
CallStatic("verifyPhoneCode", arg0, arg1, arg2, arg3);
}

3
Assets/HuaweiService/base/AGConnectServicesConfig.cs


using System;
using UnityEngine;
using System.Collections.Generic;

public string name => "com.huawei.agconnect.config.AGConnectServicesConfig";
}
[Obsolete("Method is obsolete.", false)]
public class AGConnectServicesConfig :HmsClass<AGConnectServicesConfig_Data>
{
public AGConnectServicesConfig (): base() { }

38
Assets/HuaweiService/cloud_db/AGConnectCloudDB.cs


public static AGConnectCloudDB getInstance() {
return CallStatic<AGConnectCloudDB>("getInstance");
}
public Task setUserKey(string arg0, string arg1) {
return Call<Task>("setUserKey", arg0, arg1);
}
public Task updateDataEncryptionKey() {
return Call<Task>("updateDataEncryptionKey");
}
public void addDataEncryptionKeyListener(OnDataEncryptionKeyChangeListener arg0) {
Call("addDataEncryptionKeyListener", arg0);
}
public void addEventListener(EventListener arg0) {
Call("addEventListener", arg0);
}
public void createObjectType(ObjectTypeInfo arg0) {
Call("createObjectType", arg0);
}

}
public void disableNetwork(string arg0) {
Call("disableNetwork", arg0);
}
public class EventListener_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.cloud.database.AGConnectCloudDB$EventListener";
}
public class EventListener :HmsClass<EventListener_Data>
{
public EventListener (): base() { }
}
public class OnDataEncryptionKeyChangeListener_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.cloud.database.AGConnectCloudDB$OnDataEncryptionKeyChangeListener";
}
public class OnDataEncryptionKeyChangeListener :HmsClass<OnDataEncryptionKeyChangeListener_Data>
{
public OnDataEncryptionKeyChangeListener (): base() { }
}
public class EventType_Data : IHmsBaseClass{
public string name => "com.huawei.agconnect.cloud.database.AGConnectCloudDB$EventType";
}
public class EventType :HmsClass<EventType_Data>
{
public static EventType USER_KEY_CHANGED => HmsUtil.GetStaticValue<EventType>("USER_KEY_CHANGED");
public EventType (): base() { }
}
}
}

2
Assets/HuaweiService/cloud_storage/AGCStorageManagement.cs


using System;
using UnityEngine;
using System.Collections.Generic;

public StorageReference getStorageReference(string arg0) {
return Call<StorageReference>("getStorageReference", arg0);
}
[Obsolete("Method is obsolete.", false)]
public StorageReference getReferenceFromUrl(string arg0) {
return Call<StorageReference>("getReferenceFromUrl", arg0);
}

正在加载...
取消
保存