Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6 from mandre42/master
Browse files Browse the repository at this point in the history
[UPD] add raw attribute in Conversation and Response class
  • Loading branch information
mandre42 authored Jan 17, 2017
2 parents 5e0dfe4 + 8e2b60d commit 9c98271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public function __construct($json)
// var_dump($json);
$response = json_decode($json->body);

$this->raw = $response->results;
$this->replies = $response->results->replies;
$this->action = $response->results->action;
$this->nextActions = $response->results->next_actions;
Expand Down
1 change: 1 addition & 0 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function __construct($json)
$response = json_decode($json->body);
$this->entities = [];

$this->raw = $response->results;
$this->act = $response->results->act;
$this->type = $response->results->type;
$this->source = $response->results->source;
Expand Down

0 comments on commit 9c98271

Please sign in to comment.