EnumMacros.h
9.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
//
// 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