コード例 #1
0
ファイル: UpcShared.cs プロジェクト: rlittletht/UpcInv
        public static USR_DvdInfoList FromTCSR(USR usr)
        {
            USR_DvdInfoList usrs = new USR_DvdInfoList();

            usrs.Reason        = usr.Reason;
            usrs.Result        = usr.Result;
            usrs.CorrelationID = usr.CorrelationID;

            return(usrs);
        }
コード例 #2
0
        public async Task <List <DvdInfo> > DvdInfoListRetrieve(string sTitle)
        {
            EnsureServiceConnection();

            USR_DvdInfoList usrdl = await m_api.GetDvdScanInfosFromTitle(sTitle);

            if (usrdl.Result == false || usrdl.TheValue == null)
            {
                return(null);
            }

            List <DvdInfo> dvdInfoList = new List <DvdInfo>(usrdl.TheValue);

            if (dvdInfoList.Count == 0)
            {
                return(null);
            }

            return(dvdInfoList);
        }