示例#1
0
 public static ItemIntroToken ProductPageToken2ItemIntroToken(this ItemProductPageToken token)
 {
     return(new ItemIntroToken
     {
         ItemId = token.ItemId
         , ItemType = token.ItemType
         , ItemName = token.ItemName
         , IntroHtml = token.IntroHtml
         , OverviewVideoIdentifier = token.OverviewVideoIdentifier
         , VideoInfoToken = token.VideoInfoToken
         , TrackingID = token.TrackingID
     });
 }
示例#2
0
 public static int?ItemProductToken2ItemId(this ItemProductPageToken token, BillingEnums.ePurchaseItemTypes type)
 {
     return(token.ItemType == type ? token.ItemId : (int?)null);
 }