public AccountData(DateTime datetime, AccountDataType type, string account, byte providerId, byte route) : base(datetime) { Type = type; Account = account; ProviderId = providerId; Route = route; }
/// <inheritdoc /> public CMSG_UPDATE_ACCOUNT_DATA_PAYLOAD(AccountDataType dataType, [NotNull] string timeStamp, [NotNull] string configData) : this() { DataType = dataType; TimeStamp = timeStamp ?? throw new ArgumentNullException(nameof(timeStamp)); ConfigData = configData ?? throw new ArgumentNullException(nameof(configData)); }
public AccountData(DateTime datetime, AccountDataType type, string account, byte providerId, byte route) : base(datetime) { this.Type = type; this.Account = account; this.ProviderId = providerId; this.Route = route; this.Fields = new AccountDataFieldList(); }
private static IPacket GetUpdateAccountDataCompletePkt(AccountDataType type) { IPacket packet = WorldPacketFactory.Create(WMSG.SMSG_UPDATE_ACCOUNT_DATA_COMPLETE); BinaryWriter writer = packet.CreateWriter(); writer.Write((uint)type); writer.Write(0); return packet; }
private static IPacket GetUpdateAccountDataCompletePkt(AccountDataType type) { IPacket packet = WorldPacketFactory.Create(WMSG.SMSG_UPDATE_ACCOUNT_DATA_COMPLETE); BinaryWriter writer = packet.CreateWriter(); writer.Write((uint)type); writer.Write(0); return(packet); }
public AccpuntData FindAccpuntData(AccountDataType type, ulong guid) { if(Datas.Where(ad => ad.Type == type && ad.Guid == guid).FirstOrDefault() != null) { return datas.Where(ad => ad.Type == type && ad.Guid == guid).FirstOrDefault(); } var data = new AccpuntData { Type = type, Guid = guid, Time = DateTimeExtension.ToDateTime(0), Data = "", }; datas.Add(data); return data; }
public AccpuntData FindAccpuntData(AccountDataType type, ulong guid) { if (Datas.Where(ad => ad.Type == type && ad.Guid == guid).FirstOrDefault() != null) { return(datas.Where(ad => ad.Type == type && ad.Guid == guid).FirstOrDefault()); } var data = new AccpuntData { Type = type, Guid = guid, Time = DateTimeExtension.ToDateTime(0), Data = "", }; datas.Add(data); return(data); }