using System.Collections;
using System.Collections.Generic;
using UnityEngine;
///
/// 快爆单机防沉迷用户信息实体类
/// create by chenbaoyang
///
namespace com.m3839.sdk.single {
public class UnionFcmUser
{
private string userId;
private string nick;
private string type;
private string accessToken;
///
/// 用户信息包装
///
public UnionFcmUser(AndroidJavaObject user)
{
this.userId = user.Call("getUserId");
this.nick = user.Call("getNick");
this.type = user.Call("getType");
this.accessToken = user.Call("getAccessToken");
}
///
/// 获得用户ID
///
/// 用户编号字符串
public string getUserId()
{
return userId;
}
///
/// 获得昵称
///
/// 昵称字符串
public string getNick()
{
return nick;
}
///
/// 获得登录类型
///
/// 类型字符串
public string getType()
{
return type;
}
///
/// 用来校验登录授权过程真实性,accessToken有效期两小时
///
/// 类型字符串
public string getAccessToken()
{
return accessToken;
}
public string toString()
{
return "UnionFcmUser{" +
"userId='" + userId + '\'' +
", nick='" + nick + '\'' +
", type='" + type + '\'' +
", accessToken='" + accessToken + '\'' +
'}';
}
}
}