blob: 7ba1f2bcb90888a650d5669538ee0400ffc49ed9 (
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
|
using System;
using KKSG;
using XMainClient.UI;
using XUtliPoolLib;
namespace XMainClient
{
internal class XGuildRedPacketLog : ILogData, IComparable<ILogData>
{
public ulong uid;
public string name;
public int itemid;
public int itemcount;
public int time;
public void SetData(GetGuildBonusInfo data)
{
this.uid = data.roleID;
this.name = data.roleName;
this.itemcount = (int)data.getNum;
this.time = (int)data.getTime;
}
public string GetContent()
{
return XStringDefineProxy.GetString("GUILD_REDPACKET_LOG", new object[]
{
XLabelSymbolHelper.FormatName(this.name, this.uid, "00ffff"),
XLabelSymbolHelper.FormatCostWithIcon(this.itemcount, (ItemEnum)this.itemid)
});
}
public string GetTime()
{
return XSingleton<UiUtility>.singleton.TimeAgoFormatString(this.time);
}
public int CompareTo(ILogData otherLog)
{
XGuildRedPacketLog xguildRedPacketLog = otherLog as XGuildRedPacketLog;
bool flag = xguildRedPacketLog.time == this.time;
int result;
if (flag)
{
result = this.uid.CompareTo(xguildRedPacketLog.uid);
}
else
{
result = this.time.CompareTo(xguildRedPacketLog.time);
}
return result;
}
}
}
|