Esempio n. 1
0
        /*----------------------------------------------------------------------------
        *       %%Function: CreateDvd
        *       %%Qualified: UniversalUpc.UpcInvCore.CreateDvd
        *       %%Contact: rlittle
        *
        *   Create a DVD with the given scan code and title.
        *  ----------------------------------------------------------------------------*/
        public async Task <bool> CreateDvd(string sScanCode, string sTitle, Guid crids)
        {
            EnsureServiceConnection();
            USR usr = await m_api.CreateDvd(sScanCode, sTitle);

            if (usr.Result)
            {
                m_lp.LogEvent(crids, EventType.Verbose, "Successfully added title for {0}", sScanCode);
            }
            else
            {
                m_lp.LogEvent(crids, EventType.Error, "Failed to add title for {0}", sScanCode);
            }

            return(usr.Result);
        }