internal void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } Id = wmXmlPackage.SelectInt32("@id"); Purse = wmXmlPackage.SelectPurse("pursename"); Amount = wmXmlPackage.SelectAmount("amount"); Description = (Description)wmXmlPackage.SelectString("desc"); // Элементы outsideopen, lastintr, lastouttr отсутствуют при авторизации ключами Keeper Light. Enable = wmXmlPackage.SelectBoolIfExists("outsideopen") ?? false; LastIncomingTransferId = wmXmlPackage.SelectInt64IfExists("lastintr") ?? 0; LastOutgoingTransferId = wmXmlPackage.SelectInt64IfExists("lastouttr") ?? 0; }