提交主播投票功能
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.yunbao.common.bean;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
|
||||
@@ -166,8 +167,12 @@ public class LiveRoomVoteModel extends BaseModel {
|
||||
public void setVote(String vote) {
|
||||
this.vote = vote;
|
||||
}
|
||||
public boolean isVoteLeft(){
|
||||
|
||||
public boolean isVoteLeft() {
|
||||
return vote.equals("option_content_first_num");
|
||||
}
|
||||
|
||||
public boolean isVote() {
|
||||
return !StringUtil.isEmpty(vote);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user