@@ -0,0 +1,2196 @@
+package com.growthbeat.message.model;%0A%0Aimport com.growthbeat.model.Model;%0Aimport com.growthbeat.utils.JSONObjectUtils;%0A%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0A/**%0A * Created by a13048 on 2017/03/10.%0A */%0A%0Apublic class ShowMessageCount extends Model %7B%0A%0A    private String clientId;%0A    private String messageId;%0A    private String taskId;%0A    private int count;%0A%0A    public String getClientId() %7B%0A        return clientId;%0A    %7D%0A%0A    public void setClientId(String clientId) %7B%0A        this.clientId = clientId;%0A    %7D%0A%0A    public String getMessageId() %7B%0A        return messageId;%0A    %7D%0A%0A    public void setMessageId(String messageId) %7B%0A        this.messageId = messageId;%0A    %7D%0A%0A    public String getTaskId() %7B%0A        return taskId;%0A    %7D%0A%0A    public void setTaskId(String taskId) %7B%0A        this.taskId = taskId;%0A    %7D%0A%0A    public int getCount() %7B%0A        return count;%0A    %7D%0A%0A    public void setCount(int count) %7B%0A        this.count = count;%0A    %7D%0A%0A    @Override%0A    public JSONObject getJsonObject() %7B%0A%0A        JSONObject jsonObject = new JSONObject();%0A        try %7B%0A            jsonObject.put(%22clientId%22, getClientId());%0A            jsonObject.put(%22messageId%22, getMessageId());%0A            jsonObject.put(%22taskId%22, getTaskId());%0A            jsonObject.put(%22count%22, getCount());%0A        %7D catch (JSONException e) %7B%0A            throw new IllegalArgumentException(%22Failed to get JSON.%22, e);%0A        %7D%0A%0A        return null;%0A    %7D%0A%0A    @Override%0A    public void setJsonObject(JSONObject jsonObject) %7B%0A%0A        try %7B%0A            if (JSONObjectUtils.hasAndIsNotNull(jsonObject, %22clientId%22))%0A                setClientId(jsonObject.getString(%22clientId%22));%0A            if (JSONObjectUtils.hasAndIsNotNull(jsonObject, %22messageId%22))%0A                setMessageId(jsonObject.getString(%22messageId%22));%0A            if (JSONObjectUtils.hasAndIsNotNull(jsonObject, %22taskId%22))%0A                setTaskId(jsonObject.getString(%22taskId%22));%0A            if (JSONObjectUtils.hasAndIsNotNull(jsonObject, %22count%22))%0A                setCount(jsonObject.getInt(%22count%22));%0A        %7D catch (JSONException e) %7B%0A            throw new IllegalArgumentException(%22Failed to parse JSON.%22, e);%0A        %7D%0A    %7D%0A    %0A%7D%0A

add ShowMessageCount model