public static function parse_list($response) { $result = array(); $res = Text::parse_json($response); if (!empty($res)) { foreach ($res as $re) { $obj = new self(); $obj->user(WassrUser::parse($re["user"])); unset($re["user"]); $obj->channel(WassrChannel::parse($re["channel"])); unset($re["channel"]); $result[] = $obj->cp($re); } } return $result; }
public function user_channel($login_id) { $this->do_get("channel_user/user_list.json"); return WassrChannel::parse_list($this->body()); }