84 lines
1.5 KiB
C#
84 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Thousandto.Core.Base
|
|
{
|
|
/// <summary>
|
|
/// 默认设备信息
|
|
/// </summary>
|
|
public class DefaultDeviceInfo:IDeviceInfo
|
|
{
|
|
public float GetBatteryPower()
|
|
{
|
|
return 1f;
|
|
}
|
|
|
|
public float GetScreenBrightness()
|
|
{
|
|
return 1f;
|
|
}
|
|
|
|
public string GetPhoneBrand()
|
|
{
|
|
return "Editor";
|
|
}
|
|
|
|
public string GetPhoneModel()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
public string GetPhoneImei()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
public string GetPhoneImsi()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
public string GetPhoneNumber()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
public string GetSimOperator()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
public string GetPhoneCPUName()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
public string GetPhoneCPUFrequency()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
public string GetMacAddress()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
//安卓和pc直接返回空
|
|
public string GetIDFA()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
public int GetPhoneCores()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
public void SetScreenBrightness(float value)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|