/// <summary> /// Deserialization constructor. /// </summary> /// <param name="serial"></param> internal Account(SerializableAccount serial) : this() { m_userId = serial.ID; m_apiKey = serial.Key; m_keyLevel = serial.KeyLevel; m_accountExpirationDate = serial.PaidUntil; m_accountCreated = serial.CreateDate; m_ignoreList.Import(serial.IgnoreList); }
internal object Clone() { var clone = new SerializableAccount(); clone.ID = this.ID; clone.Key = this.Key; clone.KeyLevel = this.KeyLevel; clone.LastCharacterListUpdate = this.LastCharacterListUpdate; clone.IgnoreList.AddRange(this.IgnoreList.Select(x => x.Clone())); return(clone); }
internal object Clone() { var clone = new SerializableAccount(); clone.ID = this.ID; clone.Key = this.Key; clone.KeyLevel = this.KeyLevel; clone.PaidUntil = this.PaidUntil; clone.CreateDate = this.CreateDate; clone.LastAccountStatusUpdate = this.LastAccountStatusUpdate; clone.LastCharacterListUpdate = this.LastCharacterListUpdate; clone.IgnoreList.AddRange(this.IgnoreList.Select(x => x.Clone())); return clone; }
/// <summary> /// Clones this instance. /// </summary> /// <returns></returns> internal SerializableAccount Clone() { SerializableAccount clone = new SerializableAccount { ID = ID, Key = Key, KeyLevel = KeyLevel, PaidUntil = PaidUntil, CreateDate = CreateDate, LastAccountStatusUpdate = LastAccountStatusUpdate, LastCharacterListUpdate = LastCharacterListUpdate }; clone.IgnoreList.AddRange(IgnoreList.Select(x => x.Clone())); return(clone); }
/// <summary> /// Clones this instance. /// </summary> /// <returns></returns> internal SerializableAccount Clone() { SerializableAccount clone = new SerializableAccount { ID = ID, Key = Key, KeyLevel = KeyLevel, PaidUntil = PaidUntil, CreateDate = CreateDate, LastAccountStatusUpdate = LastAccountStatusUpdate, LastCharacterListUpdate = LastCharacterListUpdate }; clone.IgnoreList.AddRange(IgnoreList.Select(x => x.Clone())); return clone; }