using System;
namespace Funique
{
///
/// The client information structure
/// ------------------------------------------------
/// 客戶端資料結構
///
[Serializable]
public struct PlayerInformation
{
public string Name;
public string NickName;
public string IP;
public int Port;
public int ID;
public int CinemaID;
public OnlineState OnlineState;
///
/// Operation system audio level
/// The value should be between 0 - 65535
/// ------------------------------------------------
/// 作業系統聲音音量
/// 這個值應該在 0 - 65535
///
public int AudioLevel;
public string VideoState;
public string SubtitleState;
public string AudioMode;
public string VideoName;
public float Time;
public int Battery;
public string DisplayName
{
get
{
if (!string.IsNullOrEmpty(NickName))
return NickName;
else
return Name;
}
}
public static PlayerInformation Default
{
get
{
return new PlayerInformation()
{
Port = 0,
ID = -1,
CinemaID = -1,
OnlineState = OnlineState.Breakdown,
AudioLevel = 65535,
VideoState = "Stop",
SubtitleState = "False",
AudioMode = "NONE",
Time = 0,
Battery = 0
};
}
}
}
}