コード例 #1
0
        public static String GetPostTypeName(TypePostTime type)
        {
            switch (type)
            {
            case TypePostTime.StandartMessage:
                return("Стандартное");

            case TypePostTime.PinnedMessage:
                return("Закрепленное");

            case TypePostTime.PinnedMessageNotification:
                return("Закрпленное с уведомлением");
            }

            return("Неизвестно");
        }
コード例 #2
0
        public static Single GetPostTypePrice(TypePostTime type)
        {
            switch (type)
            {
            case TypePostTime.StandartMessage:
                return(PriceData.postTypeDefault);

            case TypePostTime.PinnedMessage:
                return(PriceData.postTypePinnedPrice);

            case TypePostTime.PinnedMessageNotification:
                return(PriceData.postTypePinnedNotificationPrice);
            }

            return(-1);
        }