summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs
blob: 3b055021e19c4735df8f7dcbb748505af46a30f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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;
	}
}