summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/partnerShopRecord.cs
blob: 6ba834166361bf43038bd1d7b40809e68ab53221 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
using System;
using KKSG;
using XMainClient.UI;
using XUtliPoolLib;

namespace XMainClient
{
	internal class partnerShopRecord
	{
		public ulong RoleId
		{
			get
			{
				return this.m_roleId;
			}
		}

		public string PlayerName
		{
			get
			{
				return this.m_name;
			}
		}

		public string ItemName
		{
			get
			{
				return this.m_row.ItemName[0];
			}
		}

		public string TimeStr
		{
			get
			{
				return this.m_timeStr;
			}
		}

		public uint BuyCount
		{
			get
			{
				return this.m_count;
			}
		}

		private ulong m_roleId;

		private ItemList.RowData m_row;

		private uint m_count;

		private uint m_time;

		private string m_name;

		private string m_timeStr;

		public partnerShopRecord(PartnerShopRecordItem item)
		{
			this.m_roleId = item.roleid;
			this.m_row = XBagDocument.GetItemConf((int)item.itemid);
			bool flag = this.m_row == null;
			if (flag)
			{
				XSingleton<XDebug>.singleton.AddErrorLog("can not find this item,itemid = " + item.itemid.ToString(), null, null, null, null, null);
			}
			this.m_count = item.itemcount;
			this.m_name = XTitleDocument.GetTitleWithFormat(item.titleid, item.name);
			this.m_time = item.time;
			this.m_timeStr = XSingleton<UiUtility>.singleton.TimeFormatSince1970((int)item.time, XStringDefineProxy.GetString("TimeFormate"), true);
		}
	}
}