public Activity(JSONObject json) {
   activityId(json.optString("activityId"));
   text(json.optString("text"));
   cacheId(json.optString("cacheId"));
   createdDate(DateUtils.parse(json.optString("createdDate")));
   teamName(json.optString("teamName"));
   teamId(json.optString("teamId"));
   numberOfLikeVotes(json.optInt("numberOfLikeVotes"));
   numberOfDislikeVotes(json.optInt("numberOfDislikeVotes"));
   thumbNail(BitmapUtils.getBitmapFrom(json.optString("thumbNail")));
   isVideo(json.optBoolean("isVideo"));
 }
    @Override
    public ArrayList<BasicNameValuePair> toParams() {
      ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();

      params.add(
          new BasicNameValuePair(
              "mostCurrentDate", DateUtils.toDateParameterString(mostCurrentDate())));
      params.add(
          new BasicNameValuePair("totalNumberOfDays", Integer.toString(totalNumberOfDays())));
      addParams(params);

      return params;
    }