Пример #1
0
        public static CPaymentSystem.ContentTables ReturnPaymentSystemContentTable(SpecialContentItemType contentType)
        {
            CPaymentSystem.ContentTables contentTable = CPaymentSystem.ContentTables.None;
            int id = 0;

            switch (contentType)
            {
            case SpecialContentItemType.Content:
                contentTable = CPaymentSystem.ContentTables.ContentCatalog;
                break;

            case SpecialContentItemType.SingleCodeContent:
                contentTable = CPaymentSystem.ContentTables.SingleCodeContent;
                break;

            case SpecialContentItemType.MMS:
                contentTable = CPaymentSystem.ContentTables.TExt2MMSContent;
                break;

            case SpecialContentItemType.MobileGames:
                contentTable = CPaymentSystem.ContentTables.MobileGames;
                break;

            case SpecialContentItemType.PersonalisedColourBackgrounds:
                contentTable = CPaymentSystem.ContentTables.PersonalizedBackground;
                break;

            case SpecialContentItemType.InfoAlerts:
                contentTable = CPaymentSystem.ContentTables.InfoAlerts;
                break;

            default:
                contentTable = CPaymentSystem.ContentTables.None;
                break;
            }
            return(contentTable);
        }
Пример #2
0
 public static int ReturnPaymentSysteContentTableID(SpecialContentItemType contentType)
 {
     CPaymentSystem.ContentTables contentTable = CPaymentSystem.ContentTables.None;
     contentTable = ReturnPaymentSystemContentTable(contentType);
     return(Convert.ToInt32(contentTable));
 }