微信(枚举类型)
//1.素材枚举
//2. 消息类型枚举
//3. 事件类型枚举
//4. 自定义菜单类型
//5. 客服会话操作类型
//6.授权类型
//7.卡券状态
// 8.卡券类型枚举
// 9.账单类型
// 10.红包类型
1 public enum MaterialType 2 { 3 /// <summary> 4 /// 图片(image): 2MB,支持bmp/png/jpeg/jpg/gif格式 5 /// </summary> 6 image, 7 /// <summary> 8 /// 语音(voice):5MB,播放长度不超过60s,支持mp3/wma/wav/amr格式 9 /// </summary> 10 voice, 11 /// <summary> 12 /// 视频(video):20MB,支持rm/rmvb/wmv/avi/mpg/mpeg/mp4格式 13 /// </summary> 14 video, 15 /// <summary> 16 /// 缩略图(thumb):64KB,支持jpg格式 17 /// </summary> 18 thumb, 19 /// <summary> 20 /// 图文 21 /// </summary> 22 news 23 } 24 25 26 /// <summary> 27 /// 消息类型枚举 28 /// </summary> 29 public enum MsgType 30 { 31 /// <summary> 32 ///文本类型 33 /// </summary> 34 TEXT, 35 /// <summary> 36 /// 图片类型 37 /// </summary> 38 IMAGE, 39 /// <summary> 40 /// 语音类型 41 /// </summary> 42 VOICE, 43 /// <summary> 44 /// 视频类型 45 /// </summary> 46 VIDEO, 47 /// <summary> 48 /// 地理位置类型 49 /// </summary> 50 LOCATION, 51 /// <summary> 52 /// 链接类型 53 /// </summary> 54 LINK, 55 /// <summary> 56 /// 事件类型 57 /// </summary> 58 EVENT, 59 /// <summary> 60 /// 小视频 61 /// </summary> 62 SHORTVIDEO 63 } 64 65 66 /// <summary> 67 /// 事件类型枚举 68 /// </summary> 69 public enum EventType 70 { 71 /// <summary> 72 /// 非事件类型 73 /// </summary> 74 NOEVENT, 75 /// <summary> 76 /// 订阅 77 /// </summary> 78 SUBSCRIBE, 79 /// <summary> 80 /// 取消订阅 81 /// </summary> 82 UNSUBSCRIBE, 83 /// <summary> 84 /// 扫描带参数的二维码 85 /// </summary> 86 SCAN, 87 /// <summary> 88 /// 地理位置 89 /// </summary> 90 LOCATION, 91 /// <summary> 92 /// 单击按钮 93 /// </summary> 94 CLICK, 95 /// <summary> 96 /// 链接按钮 97 /// </summary> 98 VIEW, 99 /// <summary> 100 /// 扫码推事件 101 /// </summary> 102 SCANCODE_PUSH, 103 /// <summary> 104 /// 扫码推事件且弹出“消息接收中”提示框 105 /// </summary> 106 SCANCODE_WAITMSG, 107 /// <summary> 108 /// 弹出系统拍照发图 109 /// </summary> 110 PIC_SYSPHOTO, 111 /// <summary> 112 /// 弹出拍照或者相册发图 113 /// </summary> 114 PIC_PHOTO_OR_ALBUM, 115 /// <summary> 116 /// 弹出微信相册发图器 117 /// </summary> 118 PIC_WEIXIN, 119 /// <summary> 120 /// 弹出地理位置选择器 121 /// </summary> 122 LOCATION_SELECT, 123 /// <summary> 124 /// 模板消息推送 125 /// </summary> 126 TEMPLATESENDJOBFINISH, 127 /// <summary> 128 /// 群发消息推送 129 /// </summary> 130 MASSSENDJOBFINISH, 131 /// <summary> 132 /// 创建客服会话 133 /// </summary> 134 KF_CREATE_SESSION, 135 /// <summary> 136 /// 关闭客服会话 137 /// </summary> 138 KF_CLOSE_SESSION, 139 /// <summary> 140 /// 转接客服会话 141 /// </summary> 142 KF_SWITCH_SESSION, 143 /// <summary> 144 /// 微信小店订单 145 /// </summary> 146 MERCHANT_ORDER, 147 /// <summary> 148 /// 门店审核事件 149 /// </summary> 150 POI_CHECK_NOTIFY, 151 /// <summary> 152 /// 卡券通过审核 153 /// </summary> 154 CARD_PASS_CHECK, 155 /// <summary> 156 /// 卡券未通过审核 157 /// </summary> 158 CARD_NOT_PASS_CHECK, 159 /// <summary> 160 /// 用户领取卡券 161 /// </summary> 162 USER_GET_CARD, 163 /// <summary> 164 /// 用户删除卡券 165 /// </summary> 166 USER_DEL_CARD, 167 /// <summary> 168 /// 进入会员卡事件 169 /// </summary> 170 USER_VIEW_CARD, 171 /// <summary> 172 /// 卡券核销 173 /// </summary> 174 USER_CONSUME_CARD 175 } 176 /// <summary> 177 /// 自定义菜单类型 178 /// </summary> 179 public enum MenuType 180 { 181 /// <summary> 182 /// 点击推事件 183 /// </summary> 184 click, 185 /// <summary> 186 /// 跳转URL 187 /// </summary> 188 view, 189 /// <summary> 190 /// 扫码推事件 191 /// </summary> 192 scancode_push, 193 /// <summary> 194 /// 扫码推事件且弹出“消息接收中”提示框 195 /// </summary> 196 scancode_waitmsg, 197 /// <summary> 198 /// 弹出系统拍照发图 199 /// </summary> 200 pic_sysphoto, 201 /// <summary> 202 /// 弹出拍照或者相册发图 203 /// </summary> 204 pic_photo_or_album, 205 /// <summary> 206 /// 弹出微信相册发图器 207 /// </summary> 208 pic_weixin, 209 /// <summary> 210 /// 弹出地理位置选择器 211 /// </summary> 212 location_select, 213 /// <summary> 214 /// 下发消息(除文本消息) 215 /// </summary> 216 media_id, 217 /// <summary> 218 /// 跳转图文消息URL 219 /// </summary> 220 view_limited 221 } 222 223 //授权类型 224 public enum AuthType 225 { 226 /// <summary> 227 /// 静默授权并自动跳转到回调页 228 /// </summary> 229 snsapi_base, 230 /// <summary> 231 /// 询问授权 232 /// </summary> 233 snsapi_userinfo 234 } 235 /// <summary> 236 /// 客服会话操作类型 237 /// </summary> 238 public enum KfSessionType 239 { 240 /// <summary> 241 /// 创建会话 242 /// </summary> 243 create, 244 /// <summary> 245 /// 关闭会话 246 /// </summary> 247 close 248 } 249 //卡券状态 250 public enum CardStatus 251 { 252 /// <summary> 253 /// 待审核 254 /// </summary> 255 CARD_STATUS_NOT_VERIFY, 256 /// <summary> 257 /// 审核失败 258 /// </summary> 259 CARD_STATUS_VERIFY_FALL, 260 /// <summary> 261 /// 通过审核 262 /// </summary> 263 CARD_STATUS_VERIFY_OK, 264 /// <summary> 265 /// 卡券被用户删除 266 /// </summary> 267 CARD_STATUS_USER_DELETE, 268 /// <summary> 269 /// 在公众平台投放过的卡券 270 /// </summary> 271 CARD_STATUS_DISPATCH 272 } 273 /// <summary> 274 /// 卡券类型枚举 275 /// </summary> 276 public enum CardType 277 { 278 /// <summary> 279 /// 通用券 280 /// </summary> 281 GENERAL_COUPON, 282 /// <summary> 283 /// 团购券 284 /// </summary> 285 GROUPON, 286 /// <summary> 287 /// 折扣券 288 /// </summary> 289 DISCOUNT, 290 /// <summary> 291 /// 礼品券 292 /// </summary> 293 GIFT, 294 /// <summary> 295 /// 代金券 296 /// </summary> 297 CASH, 298 /// <summary> 299 /// 会员卡 300 /// </summary> 301 MEMBER_CARD, 302 /// <summary> 303 /// 景点门票 304 /// </summary> 305 SCENIC_TICKET, 306 /// <summary> 307 /// 电影票 308 /// </summary> 309 MOVIE_TICKET, 310 /// <summary> 311 /// 飞机票 312 /// </summary> 313 BOARDING_PASS, 314 /// <summary> 315 /// 红包 316 /// </summary> 317 LUCKY_MONEY, 318 /// <summary> 319 /// 会议门票 320 /// </summary> 321 MEETING_TICKET 322 } 323 /// <summary> 324 /// 账单类型 325 /// </summary> 326 public enum BillType 327 { 328 /// <summary> 329 /// 返回当日所有订单信息,默认值 330 /// </summary> 331 ALL, 332 /// <summary> 333 /// 返回当日成功支付的订单 334 /// </summary> 335 SUCCESS, 336 /// <summary> 337 /// 返回当日退款订单 338 /// </summary> 339 REFUND, 340 /// <summary> 341 /// 已撤销的订单 342 /// </summary> 343 REVOKED 344 } 345 /// <summary> 346 /// 红包类型 347 /// </summary> 348 public enum RedPackType 349 { 350 /// <summary> 351 /// 普通红包 352 /// </summary> 353 NORMAL, 354 /// <summary> 355 /// 裂变红包 356 /// </summary> 357 GROUP 358 } 359 /// <summary> 360 /// 摇一摇红包风控设置 361 /// </summary> 362 public enum RiskCntl 363 { 364 NORMAL, 365 IGN_FREQ_LMT, 366 IGN_DAY_LMT, 367 IGN_FREQ_DAY_LMT 368 }
转载 请注明原文地址并标明转载:http://www.cnblogs.com/laopo
商业用途请与我联系:lcfhn168@163.com