EnumMacros.h 9.71 KB
//
//  EnumMacros.h
//  Yohoboys
//
//  Created by Zhou Rongjun on 14-9-19.
//  Copyright (c) 2014年 YOHO. All rights reserved.
//

#ifndef M16_EnumMacros_h
#define M16_EnumMacros_h

typedef NS_ENUM(NSInteger, YH_ContentTitleArea) {
    YH_ContentTitleAreaEnglish = 0,
    YH_ContentTitleAreaChinese = 1,
};

typedef NS_ENUM(NSInteger, YH_ContentType) {
    YH_ContentTypeImage = 0,
    YH_ContentTypeVideo = 1,
    YH_ContentTypeLookbook = 3,
    YH_ContentTypeFlowImage = 4,
    YH_ContentTypeLive = 5,
    YH_ContentTypeRepeatLive = 6,
};

typedef NS_ENUM(NSInteger, YH_LinkType) {
    YH_LinkTypeDetail = 1,
    YH_LinkTypeSubchannel = 2,
    YH_LinkTypeURL = 3,
    YH_LinkTypeMagazine = 5,
    YH_LinkTypeLookbook = 7,
};

typedef NS_ENUM(NSInteger, YH_MgzDownloadStatus) {
    YH_MagazineNotDownload = 0,
    YH_MagazineDownloading = 1,
    YH_MagazinePause = 2,
    YH_MagazineDownloaded = 3,
    YH_MagazineUpdated = 4,
};

typedef NS_ENUM(NSInteger, YH_DownloadResult) {
    YH_DownloadResultSuccess = 1,
    YH_DownloadResultFail = 2,
    YH_DownloadResultDownloading = 3,
};

typedef NS_ENUM(NSInteger, YH_UpdateType) {
    YH_UpdateTypeNone = 0,
    YH_UpdateTypeNeed = 1,
};

typedef NS_ENUM(NSInteger, YH_LoginPlatformType) {
    YH_LoginPlatformTypeNone = 123,
    YH_LoginPlatformTypeSina,
    YH_LoginPlatformTypeFacebook,
    YH_LoginPlatformTypeYoho,
    YH_LoginPlatformTypeInstagram,
    YH_LoginPlatformTypeQQ,
    YH_LoginPlatformTypeWECHAT
};

typedef NS_ENUM(NSInteger, YH_SampleApplyStatusType) {
    YH_SampleApplyStatusUsing = 1,
    YH_SampleApplyStatusSuccess = 2,
    YH_SampleApplyStatusFailure = 3,
};

typedef NS_ENUM(NSInteger, YH_TrialProductStatus)
{
    YH_TrialProductStatusNone,           //未开始
    YH_TrialProductStatusActive,           //活动进行中
    YH_TrialProductStatusCollectionReport,   //心得收集中
    YH_TrialProductStatusViewReport,        //查看评鉴报告
};

typedef NS_ENUM(NSInteger, YH_TrialApplyStatus)
{
    YH_TrialApplyStatusNone,    //未申请
    YH_TrialApplyStatusReview,  //审核中
    YH_TrialApplyStatusSuccess, //申请成功
    YH_TrialApplyStatusFail,    //申请失败
};

typedef NS_ENUM(NSInteger, YH_DataLoadingType) {
    YH_DataLoadingTypeRefresh = 1,  //刷新数据
    YH_DataLoadingTypeInfinite = 2, //下一页数据
};

typedef NS_ENUM(NSInteger, YH_ContentListServiceType) {
    YH_ContentListServiceTypeNone,
    YH_ContentListServiceTypeChannelID,
    YH_ContentListServiceTypeKeyWords,
    YH_ContentListServiceTypeNormalLookBook,
    YH_ContentListServiceTypeTagLookBook,
};

typedef NS_ENUM(NSInteger, YH_BannerServiceType) {
    YH_BannerServiceTypeNone,
    YH_BannerServiceTypeLookBook,
};

typedef NS_ENUM(NSInteger, YH_ShareContentType) {
    YH_ShareContentTypeRules = 0, /**< rules  share */
    YH_ShareContentTypeDetail = 1, /**< detail share*/
    YH_ShareContentTypeZine = 2,    /**< zine share*/
    YH_ShareContentTypeWeb = 3,     /**< web share*/
    YH_ShareContentTypeComment = 4,    /**< web share*/
    YH_ShareContentTypeisMagazineHtml5 = 5,
    YH_ShareContentTypeWallpaper = 6,
    YH_ShareContentTypeQuestion = 7,
};

typedef NS_ENUM(NSInteger, YH_VideoCellType) {
    YH_VideoCellTypeTV = 0,
    YH_VideoCellTypeVideo = 1,
};

typedef NS_ENUM(NSInteger, YH_MagazineSource) {
//    YH_MagazineSourceNone = 0,
    YH_MagazineSourceBoys = 1,
    YH_MagazineSourceGirls = 2,
    YH_MagazineSourceMine = 3,
    YH_MagazineSourceMore= 4,
};


//typedef NS_ENUM(NSInteger, YH_NavigationMenu) {
//    YH_NavigationMenuHome = 0,
//    YH_NavigationMenuFeature,
//    YH_NavigationMenuVideo,
//    YH_NavigationMenuFashion,
//    YH_NavigationMenuSneaker,
//    YH_NavigationMenuSports,
//    YH_NavigationMenuLifestyle,
//    YH_NavigationMenuMagazine,
//    YH_NavigationMenuMap,
//    YH_NavigationMenuCount,
//};

typedef NS_ENUM(NSInteger, YH_NavigationLeftMenu) {
    YH_NavigationLeftMenuNews = 0,
    YH_NavigationLeftMenuBoys,
    YH_NavigationLeftMenuGirls,
//    YH_NavigationLeftMenuSneaker,
    YH_NavigationLeftMenuVideo,
    YH_NavigationLeftMenuFeature,
    YH_NavigationLeftMenuMagazine,
    YH_NavigationLeftMenuWallpaper,
    YH_NavigationLeftMenuCount,
};

typedef NS_ENUM(NSInteger,YH_ContentListType){
    YH_ContentListNormal = 0,
    YH_ContentListSpecial = 1,
    YH_ContentListVideo = 2,
    YH_contentlistNewHome = 3,
};

typedef NS_ENUM(NSInteger, YH_ShareType) {
    YH_ShareTypeWeChatFriend = 500,
    YH_ShareTypeTypeWeChat,
    YH_ShareTypeSina,
    YH_ShareTypeQQ,
    YH_ShareTypeInstagram,
    YH_ShareTypeFacebook,
    YH_ShareTypeTwitter,
    YH_ShareTypeSHOW,
    YH_ShareTypeTencent,
    YH_ShareTypeCopy,
    YH_ShareTypeSafari,
    YH_ShareTypeMore,
    YH_ShareTypeCancel = 516,
};

typedef NS_ENUM(NSInteger, YH_AttitudeType) {
    YH_AttitudeTypeWow = 0,
    YH_AttitudeTypeZzz = 1,
    YH_AttitudeTypeWtf= 2,
};

typedef NS_ENUM(NSInteger, YH_FetchCalendarTimeType){
    YH_FetchCalendarTimeTypePreMonth = 1,
    YH_FetchCalendarTimeTypeCurrentMonth = 2,
    YH_FetchCalendarTimeTypeNextMonth = 3,
};

typedef NS_ENUM(NSInteger, YH_SettingSectionType)
{
    YH_SettingSectionTypeLanguage = 100,
    YH_SettingSectionTypeDownload,
    YH_SettingSectionTypePush,
    YH_SettingSectionTypeFeedBack,
    YH_SettingSectionTypeMoreApp,
};

typedef NS_ENUM(NSInteger, YH_SettingRowType)
{
    YH_SettingRowTypeLanguage = 200,
    YH_SettingRowTypeDownLoad,
    YH_SettingRowTypePush,
    YH_SettingRowTypeClearCache,
    YH_SettingRowTypeComment,
    YH_SettingRowTypeFeedBack,
    YH_SettingRowTypeFollowUs,
    YH_SettingRowTypeAbout,
    YH_SettingRowTypeMoreApps,
    YH_SettingRowTypeLogin,
};

typedef NS_ENUM(NSInteger, YH_BannerImageSize)
{
    YH_BannerImageSizeWidth = 320,
    YH_BannerImageSizeHeight = 215,
};

typedef NS_ENUM(NSInteger, YH_CalendarShoeImageSize){
    YH_CalendarShoeImageSizeWidth = 290,
    YH_CalendarShoeImageSizeHeight = 170,
};

typedef NS_ENUM(NSInteger, YH_ListImageSizeiPhone6P)
{
    YH_ListImageSizeiPhone6PWidth = 384,
    YH_ListImageSizeiPhone6PHeight = 245,
};

typedef NS_ENUM(NSInteger, YH_ListImageSizeiPhone6)
{
    YH_ListImageSizeiPhone6Width = 320,
    YH_ListImageSizeiPhone6Height = 204,
};

typedef NS_ENUM(NSInteger, YH_ListImageSizeBeforeiPhone6)
{
    YH_ListImageSizeBeforeiPhone6Width = 290,
    YH_ListImageSizeBeforeiPhone6Height = 185,
};

typedef NS_ENUM(NSInteger, YH_ContentImageSizeBeforeiPhone6)
{
    YH_ContentImageSizeBeforeiPhone6Width = 320,
    YH_ContentImageSizeBeforeiPhone6Height = 204,
};

typedef NS_ENUM(NSInteger, YH_ContentImageSizeiPhone6)
{
    YH_ContentImageSizeiPhone6Width = 375,
    YH_ContentImageSizeiPhone6Height = 240,
};

typedef NS_ENUM(NSInteger, YH_ContentImageSizeiPhone6P)
{
    YH_ContentImageSizeiPhone6PWidth = 414,
    YH_ContentImageSizeiPhone6PHeight = 264,
};

typedef NS_ENUM(NSInteger, YH_RelatedPostImageSize)
{
    YH_RelatedPostImageSizeWidth = 96,
    YH_RelatedPostImageSizeHeight = 61,
};

typedef NS_ENUM(NSInteger, YH_VideoSubChannelTYpe) {
    YH_VideoSubChannelAllType = 0,
    YH_VideoSubChannelPeopleType = 1,
    YH_VideoSubChannelViralType = 2,
    YH_VideoSubChannelAhumType = 3,
    YH_VideoSubChannelPlayboyType = 4,
    YH_VideoSubChannelSneakerFileType = 5,
};


typedef NS_ENUM(NSInteger, YH_MagezineRequestType) {
    YH_MagezineRequestTypeCache = 0, /**< rules  share */
    YH_MagezineRequestTypeFirst = 1, /**< detail share*/
    YH_MagezineRequestTypePull = 2,    /**< zine share*/
};

typedef NS_ENUM(NSInteger, YH_ContentHtmlImageType) {
    YH_ContentHtmlImageTypeView = 1, //进入大图浏览模式
    YH_ContentHtmlImageTypeOpen = 2, //在新页面中打开图片链接
};

typedef NS_ENUM(NSInteger, YH_ImageForamtType) {
    YH_ImageFormatNone = 0, //none
    YH_ImageFormatJpeg , //Jpeg
    YH_ImageFormatWebp  //Webp
};

typedef NS_ENUM(NSInteger, YH_ImageURLSliceType) {
    YH_ImageURLSliceTypeList = 0,
    YH_ImageURLSliceTypeRuleDetail,
    YH_ImageURLSliceTypeDetailTop,
    YH_ImageURLSliceTypeRelatedPost,
    YH_ImageURLSliceTypeCalendar
    
};

typedef NS_ENUM(NSInteger, YH_TrialOperationType)
{
    YH_TrialOperationTypeNone,
    YH_TrialOperationTypeWaitApply,
    YH_TrialOperationTypeCollectionReport,
    YH_TrialOperationTypeViewReport,
    YH_TrialOperationTypeApplyReview,
    YH_TrialOperationTypeApplySuccess,
    YH_TrialOperationTypeApplyFail,
};

typedef NS_ENUM(NSInteger, YH_ShareGirlOrBoy)
{
    YH_ShareFromBoy = 1,
    YH_ShareFromGirl = 2,
};

typedef NS_ENUM(NSInteger, YH_ContinueReadType)
{
    YH_ContinueReadTypePrevious,
    YH_ContinueReadTypeNext,
    YH_ContinueReadTypeRelated,
    YH_ContinueReadTypeHTMLLink,
    YH_ContinueReadTypeTag,
};


typedef NS_ENUM(NSInteger, YH_RefreshType) {
    YH_RefreshPullDown = 1,
    YH_RefreshMagazine = 2,
    YH_RefreshToView = 3,
};

typedef NS_ENUM(NSInteger, YH_RefreshImageType) {
    YH_RefreshImageTypeNomarl = 1,
    YH_RefreshImageTypePhotoBrowser,
};

typedef NS_ENUM(NSInteger, YH_InviteCommentType) {
    YH_InviteCommentTypeAppStore = 1,
    YH_InviteCommentTypeGoToComplain = 2,
    YH_InviteCommentTypeHaveATrial = 3,
};

typedef NS_OPTIONS(NSUInteger, YH_ProductTagType) {
    YH_ProductTagTypeNone       = 0,
    YH_ProductTagTypeSale       = 1 << 0,   //sale
    YH_ProductTagTypeReSale     = 1 << 1,   //再到着
    YH_ProductTagTypeSaleMiddle = 1 << 2,   //年中热促
    YH_ProductTagTypeSaleHot    = 1 << 3,   //年终大促
    YH_ProductTagTypeNew        = 1 << 4,   //new
    YH_ProductTagTypeYohood     = 1 << 5,   //yohood
    YH_ProductTagTypeLimited    = 1 << 6,   //限量
    YH_ProductTagTypeSaleOut    = 1 << 7,   //即将售罄
};

typedef NS_ENUM(NSInteger, YH_DetailEntranceType) {
    YH_DetailNormal = 0,
    YH_DetailCollection = 1,
    YH_DetailLookBook = 2,
};

typedef NS_ENUM(NSInteger, YH_VideoLiveType) {
    YH_VideoLiveUnstarted = 0,
    YH_VideoLiveStarted = 1,
    YH_VideoLiveOver = 2,
};
#endif