Repository navigation
Expand file tree
/
Copy pathResponseAwardMsg.java
More file actions
49 lines (45 loc) · 1.79 KB
/
Copy pathResponseAwardMsg.java
File metadata and controls
49 lines (45 loc) · 1.79 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
package com.zero.barrageserver.message.entity;
import com.zero.barrageserver.common.entity.servermsg.RequestAwardMsg;
import com.zero.barrageserver.common.utils.UrlUtils;
import com.alibaba.fastjson.annotation.JSONField;
import com.zero.barrageserver.common.entity.servermsg.RequestAwardMsg;
import com.zero.barrageserver.common.utils.UrlUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* Created by zero大神 on 2017/12/14.
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class ResponseAwardMsg extends BaseResponseMsg{
private String comment;
private String artistId;
private String artistName;
private String awardImage;
@JSONField(name = "isFullAnimation")
private boolean isFullAnimation;
private int gifCount;
private String gifType;
private String gifFileRes;
private String vpName;
private String pkType;
private double price;
public ResponseAwardMsg(){}
public ResponseAwardMsg(RequestAwardMsg requestAwardMsg){
this.activityId = requestAwardMsg.getActivityId();
this.comment = requestAwardMsg.getContent();
this.artistId = requestAwardMsg.getArtistId();
this.artistName = requestAwardMsg.getArtistName();
this.awardImage = UrlUtils.getRealUrl(requestAwardMsg.getAwardImage());
this.count = requestAwardMsg.getCount();
this.teamCode = requestAwardMsg.getTeamCode();
this.teamName = requestAwardMsg.getTeamName();
this.price = requestAwardMsg.getPrice();
this.gifCount = requestAwardMsg.getGifCount();
this.gifType = requestAwardMsg.getGifType();
this.vpName = requestAwardMsg.getVpName();
this.isFullAnimation = requestAwardMsg.isFullAnimation();
this.setType(requestAwardMsg.getMsgType());
setUser(requestAwardMsg);
}
}