Blame view

src/main/java/com/jfinal/wxaapp/msg/bean/WxaImageMsg.java 856 Bytes
e80df919   atao   init
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
  /**
   * Copyright (c) 2011-2014, L.cm 卢春梦 (qq596392912@gmail.com).
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   */
  
  package com.jfinal.wxaapp.msg.bean;
  
  import com.jfinal.wxaapp.msg.MsgModel;
  
  /**
   * 图片消息
   * @author L.cm
   *
   */
  public class WxaImageMsg extends WxaMsg {
      private static final long serialVersionUID = 7044451698431281586L;
  
      private String picUrl;
      private String mediaId;
      private Long msgId;
      
      public WxaImageMsg(MsgModel msgModel) {
          super(msgModel);
          this.msgId = msgModel.getMsgId();
          this.picUrl = msgModel.getPicUrl();
          this.mediaId = msgModel.getMediaId();
      }
  
      public String getPicUrl() {
          return picUrl;
      }
      public String getMediaId() {
          return mediaId;
      }
      public Long getMsgId() {
          return msgId;
      }
  }