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 }); }
public static int?ItemProductToken2ItemId(this ItemProductPageToken token, BillingEnums.ePurchaseItemTypes type) { return(token.ItemType == type ? token.ItemId : (int?)null); }