internal void FillAppUserInfo(PVPProtobuf.AppUserInfo u) { this.uid = u.uid; this.avatar = u.avatar; this.level = u.level; this.score = u.score; this.loseTimes = u.lose_times; this.winTimes = u.win_times; this.name = u.name; this.number = u.number; this.customDataNumber = u.custom_data_number; this.customData.Clear(); foreach (PVPProtobuf.Pair item in u.custom_data) { this.customData [item.key] = item.value; } }
/// <summary> /// Initializes a new instance of the <see cref="PVPSdk.AppUserInfo"/> class. /// </summary> internal AppUserInfo(PVPProtobuf.AppUserInfo u) { this.uid = u.uid; this.avatar = u.avatar; this.level = u.level; this.score = u.score; this.loseTimes = u.lose_times; this.winTimes = u.win_times; this.name = u.name; this.number = u.number; this.customDataNumber = u.custom_data_number; this.customData = new Dictionary <string, byte[]> (); foreach (PVPProtobuf.Pair item in u.custom_data) { this.customData [item.key] = item.value; } }
public LocalAppUserInfo(PVPProtobuf.AppUserInfo u) : base(u) { }