diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs new file mode 100644 index 00000000..3b055021 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs @@ -0,0 +1,63 @@ +using System;
+using System.Collections.Generic;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ public class ChatFriendData : LoopItemData
+ {
+ public uint degreelevel
+ {
+ get
+ {
+ return (this.friendData != null) ? this.friendData.degreeAll : 0u;
+ }
+ }
+
+ public int isOnline
+ {
+ get
+ {
+ return (this.online > 0u) ? 1 : 0;
+ }
+ }
+
+ public XFriendData friendData
+ {
+ get
+ {
+ List<XFriendData> friendData = DlgBase<XFriendsView, XFriendsBehaviour>.singleton.friendData;
+ for (int i = 0; i < friendData.Count; i++)
+ {
+ bool flag = friendData[i].roleid == this.roleid;
+ if (flag)
+ {
+ return friendData[i];
+ }
+ }
+ return null;
+ }
+ }
+
+ public uint viplevel;
+
+ public uint profession;
+
+ public string name;
+
+ public uint powerpoint;
+
+ public ulong roleid;
+
+ public bool isfriend;
+
+ public List<uint> setid = new List<uint>();
+
+ public uint online;
+
+ public DateTime msgtime = DateTime.Today;
+
+ public bool hasOfflineRead = false;
+ }
+}
|