您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
31 行
1009 B
31 行
1009 B
using UnityEngine;
|
|
using System.Collections.Generic;
|
|
|
|
namespace HuaweiService.push
|
|
{
|
|
public class HmsMessageService_Data : IHmsBaseClass{
|
|
public string name => "com.huawei.hms.push.HmsMessageService";
|
|
}
|
|
public class HmsMessageService :HmsClass<HmsMessageService_Data>
|
|
{
|
|
public HmsMessageService (): base() { }
|
|
public void onMessageReceived(RemoteMessage arg0) {
|
|
Call("onMessageReceived", arg0);
|
|
}
|
|
public void onMessageSent(string arg0) {
|
|
Call("onMessageSent", arg0);
|
|
}
|
|
public void onSendError(string arg0, Exception arg1) {
|
|
Call("onSendError", arg0, arg1);
|
|
}
|
|
public void onNewToken(string arg0) {
|
|
Call("onNewToken", arg0);
|
|
}
|
|
public void onTokenError(Exception arg0) {
|
|
Call("onTokenError", arg0);
|
|
}
|
|
public void onMessageDelivered(string arg0, Exception arg1) {
|
|
Call("onMessageDelivered", arg0, arg1);
|
|
}
|
|
}
|
|
}
|