示例#1
0
 public void ReadFrom(DataReader reader)
 {
     fRentedShowID = (RentedShowID)reader.ReadDataID("RentedShowID", RentedShowID.MaxLength,
                                                     RentedShowID.CtorString);
     fShowURL      = reader.ReadString("ShowURL", ShowURLMaxLength);
     fDataFileName = reader.ReadString("DataFileName", DataFileNameMaxLength);
 }
示例#2
0
文件: Show.cs 项目: grtvd/inetvod-dls
 public void ReadFrom(DataReader reader)
 {
     fRentedShowID = (RentedShowID)reader.ReadDataID("RentedShowID", RentedShowID.MaxLength,
                                                     RentedShowID.CtorString);
     fShowURL        = reader.ReadString("ShowURL", ShowURLMaxLength);
     fDataFileName   = reader.ReadString("DataFileName", 200);
     fDownloadStatus = (DownloadStatus)Enum.Parse(typeof(DownloadStatus),
                                                  reader.ReadString("DownloadStatus", 32).Value, false);
 }
示例#3
0
 public DownloadShow FindByRentedShowID(RentedShowID rentedShowID)
 {
     foreach (DownloadShow downloadShow in this)
     {
         if (downloadShow.RentedShowID.Equals(rentedShowID))
         {
             return(downloadShow);
         }
     }
     return(null);
 }
示例#4
0
 public Show FindByRentedShowID(RentedShowID rentedShowID)
 {
     foreach (Show show in this)
     {
         if (show.RentedShowID.Equals(rentedShowID))
         {
             return(show);
         }
     }
     return(null);
 }
示例#5
0
 public bool ContainsByRentedShowID(RentedShowID rentedShowID)
 {
     return(FindByRentedShowID(rentedShowID) != null);
 }
示例#6
0
文件: Show.cs 项目: grtvd/inetvod-dls
 public static Show NewInstance(RentedShowID rentedShowID)
 {
     return(new Show(rentedShowID));
 }
示例#7
0
文件: Show.cs 项目: grtvd/inetvod-dls
 private Show(RentedShowID rentedShowID)
 {
     fRentedShowID = rentedShowID;
 }