Example #1
0
 public AccountData(DateTime datetime, AccountDataType type, string account, byte providerId, byte route) : base(datetime)
 {
     Type = type;
     Account = account;
     ProviderId = providerId;
     Route = route;
 }
Example #2
0
 /// <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));
 }
Example #3
0
 public AccountData(DateTime datetime, AccountDataType type, string account, byte providerId, byte route) : base(datetime)
 {
     Type       = type;
     Account    = account;
     ProviderId = providerId;
     Route      = route;
 }
Example #4
0
 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();
 }
Example #5
0
 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);
        }
Example #8
0
 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;
 }
Example #9
0
        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);
        }