Exemple #1
0
        protected override void Fill(WmXmlPackage wmXmlPackage)
        {
            if (null == wmXmlPackage)
            {
                throw new ArgumentNullException(nameof(wmXmlPackage));
            }

            TransferId  = wmXmlPackage.SelectInt64("operation/@wmtransid");
            InvoiceId   = wmXmlPackage.SelectInt64("operation/@wminvoiceid");
            Amount      = wmXmlPackage.SelectAmount("operation/amount");
            Date        = wmXmlPackage.SelectWmDateTime("operation/operdate");
            Description = (Description)wmXmlPackage.SelectString("operation/purpose");
            ClientPurse = wmXmlPackage.SelectPurse("operation/pursefrom");
            ClientWmId  = wmXmlPackage.SelectWmId("operation/wmidfrom");
            Info        = wmXmlPackage.SelectString("userdesc");
            SmsState    = (SmsState?)wmXmlPackage.SelectEnumIfExists(typeof(SmsState), "smssentstate") ??
                          SmsState.BUFFERED;
        }