private String makeChannelInfoJson(ChannelInfo info){
  JSONObject root=new JSONObject();
  Map channel=new HashMap();
  channel.put("status",info.getStatus());
  channel.put("game",info.getGame());
  root.put("channel",channel);
  return root.toJSONString();
}

private String makeChannelInfoJson ( ChannelInfo info ) { JSONObject root = new JSONObject ( ) ; Map channel = new HashMap ( ) ; channel . put ( "status" , info . getStatus ( ) ) ; channel . put ( "game" , info . getGame ( ) ) ; root . put ( "channel" , channel ) ; return root . toJSONString ( ) ; }
turns a channelinfo object to josn to send it to the api .
