-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,328 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
// This file is auto-generated, don't edit it. Thanks. | ||
|
||
namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models; | ||
|
||
use AlibabaCloud\Tea\Model; | ||
|
||
class GenerateBroadcastNewsRequest extends Model | ||
{ | ||
/** | ||
* @description This parameter is required. | ||
* | ||
* @var string | ||
*/ | ||
public $prompt; | ||
protected $_name = [ | ||
'prompt' => 'prompt', | ||
]; | ||
|
||
public function validate() | ||
{ | ||
} | ||
|
||
public function toMap() | ||
{ | ||
$res = []; | ||
if (null !== $this->prompt) { | ||
$res['prompt'] = $this->prompt; | ||
} | ||
|
||
return $res; | ||
} | ||
|
||
/** | ||
* @param array $map | ||
* | ||
* @return GenerateBroadcastNewsRequest | ||
*/ | ||
public static function fromMap($map = []) | ||
{ | ||
$model = new self(); | ||
if (isset($map['prompt'])) { | ||
$model->prompt = $map['prompt']; | ||
} | ||
|
||
return $model; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
|
||
// This file is auto-generated, don't edit it. Thanks. | ||
|
||
namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models; | ||
|
||
use AlibabaCloud\Tea\Model; | ||
|
||
class GenerateBroadcastNewsResponse extends Model | ||
{ | ||
/** | ||
* @var string[] | ||
*/ | ||
public $headers; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
public $statusCode; | ||
|
||
/** | ||
* @var GenerateBroadcastNewsResponseBody | ||
*/ | ||
public $body; | ||
protected $_name = [ | ||
'headers' => 'headers', | ||
'statusCode' => 'statusCode', | ||
'body' => 'body', | ||
]; | ||
|
||
public function validate() | ||
{ | ||
} | ||
|
||
public function toMap() | ||
{ | ||
$res = []; | ||
if (null !== $this->headers) { | ||
$res['headers'] = $this->headers; | ||
} | ||
if (null !== $this->statusCode) { | ||
$res['statusCode'] = $this->statusCode; | ||
} | ||
if (null !== $this->body) { | ||
$res['body'] = null !== $this->body ? $this->body->toMap() : null; | ||
} | ||
|
||
return $res; | ||
} | ||
|
||
/** | ||
* @param array $map | ||
* | ||
* @return GenerateBroadcastNewsResponse | ||
*/ | ||
public static function fromMap($map = []) | ||
{ | ||
$model = new self(); | ||
if (isset($map['headers'])) { | ||
$model->headers = $map['headers']; | ||
} | ||
if (isset($map['statusCode'])) { | ||
$model->statusCode = $map['statusCode']; | ||
} | ||
if (isset($map['body'])) { | ||
$model->body = GenerateBroadcastNewsResponseBody::fromMap($map['body']); | ||
} | ||
|
||
return $model; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<?php | ||
|
||
// This file is auto-generated, don't edit it. Thanks. | ||
|
||
namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models; | ||
|
||
use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateBroadcastNewsResponseBody\data; | ||
use AlibabaCloud\Tea\Model; | ||
|
||
class GenerateBroadcastNewsResponseBody extends Model | ||
{ | ||
/** | ||
* @example xx | ||
* | ||
* @var string | ||
*/ | ||
public $code; | ||
|
||
/** | ||
* @var data | ||
*/ | ||
public $data; | ||
|
||
/** | ||
* @example 200 | ||
* | ||
* @var int | ||
*/ | ||
public $httpStatusCode; | ||
|
||
/** | ||
* @example success | ||
* | ||
* @var string | ||
*/ | ||
public $message; | ||
|
||
/** | ||
* @example 117F5ABE-CF02-5502-9A3F-E56BC9081A64 | ||
* | ||
* @var string | ||
*/ | ||
public $requestId; | ||
|
||
/** | ||
* @example True | ||
* | ||
* @var bool | ||
*/ | ||
public $success; | ||
protected $_name = [ | ||
'code' => 'code', | ||
'data' => 'data', | ||
'httpStatusCode' => 'httpStatusCode', | ||
'message' => 'message', | ||
'requestId' => 'requestId', | ||
'success' => 'success', | ||
]; | ||
|
||
public function validate() | ||
{ | ||
} | ||
|
||
public function toMap() | ||
{ | ||
$res = []; | ||
if (null !== $this->code) { | ||
$res['code'] = $this->code; | ||
} | ||
if (null !== $this->data) { | ||
$res['data'] = null !== $this->data ? $this->data->toMap() : null; | ||
} | ||
if (null !== $this->httpStatusCode) { | ||
$res['httpStatusCode'] = $this->httpStatusCode; | ||
} | ||
if (null !== $this->message) { | ||
$res['message'] = $this->message; | ||
} | ||
if (null !== $this->requestId) { | ||
$res['requestId'] = $this->requestId; | ||
} | ||
if (null !== $this->success) { | ||
$res['success'] = $this->success; | ||
} | ||
|
||
return $res; | ||
} | ||
|
||
/** | ||
* @param array $map | ||
* | ||
* @return GenerateBroadcastNewsResponseBody | ||
*/ | ||
public static function fromMap($map = []) | ||
{ | ||
$model = new self(); | ||
if (isset($map['code'])) { | ||
$model->code = $map['code']; | ||
} | ||
if (isset($map['data'])) { | ||
$model->data = data::fromMap($map['data']); | ||
} | ||
if (isset($map['httpStatusCode'])) { | ||
$model->httpStatusCode = $map['httpStatusCode']; | ||
} | ||
if (isset($map['message'])) { | ||
$model->message = $map['message']; | ||
} | ||
if (isset($map['requestId'])) { | ||
$model->requestId = $map['requestId']; | ||
} | ||
if (isset($map['success'])) { | ||
$model->success = $map['success']; | ||
} | ||
|
||
return $model; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?php | ||
|
||
// This file is auto-generated, don't edit it. Thanks. | ||
|
||
namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateBroadcastNewsResponseBody; | ||
|
||
use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateBroadcastNewsResponseBody\data\hotTopicSummaries; | ||
use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateBroadcastNewsResponseBody\data\usage; | ||
use AlibabaCloud\Tea\Model; | ||
|
||
class data extends Model | ||
{ | ||
/** | ||
* @var hotTopicSummaries[] | ||
*/ | ||
public $hotTopicSummaries; | ||
|
||
/** | ||
* @example 2bb0ea82dafd48a8817fadc4c90e2b52 | ||
* | ||
* @var string | ||
*/ | ||
public $sessionId; | ||
|
||
/** | ||
* @example 3feb69ed02d9b1a17d0f1a942675d300 | ||
* | ||
* @var string | ||
*/ | ||
public $taskId; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $text; | ||
|
||
/** | ||
* @var usage | ||
*/ | ||
public $usage; | ||
protected $_name = [ | ||
'hotTopicSummaries' => 'hotTopicSummaries', | ||
'sessionId' => 'sessionId', | ||
'taskId' => 'taskId', | ||
'text' => 'text', | ||
'usage' => 'usage', | ||
]; | ||
|
||
public function validate() | ||
{ | ||
} | ||
|
||
public function toMap() | ||
{ | ||
$res = []; | ||
if (null !== $this->hotTopicSummaries) { | ||
$res['hotTopicSummaries'] = []; | ||
if (null !== $this->hotTopicSummaries && \is_array($this->hotTopicSummaries)) { | ||
$n = 0; | ||
foreach ($this->hotTopicSummaries as $item) { | ||
$res['hotTopicSummaries'][$n++] = null !== $item ? $item->toMap() : $item; | ||
} | ||
} | ||
} | ||
if (null !== $this->sessionId) { | ||
$res['sessionId'] = $this->sessionId; | ||
} | ||
if (null !== $this->taskId) { | ||
$res['taskId'] = $this->taskId; | ||
} | ||
if (null !== $this->text) { | ||
$res['text'] = $this->text; | ||
} | ||
if (null !== $this->usage) { | ||
$res['usage'] = null !== $this->usage ? $this->usage->toMap() : null; | ||
} | ||
|
||
return $res; | ||
} | ||
|
||
/** | ||
* @param array $map | ||
* | ||
* @return data | ||
*/ | ||
public static function fromMap($map = []) | ||
{ | ||
$model = new self(); | ||
if (isset($map['hotTopicSummaries'])) { | ||
if (!empty($map['hotTopicSummaries'])) { | ||
$model->hotTopicSummaries = []; | ||
$n = 0; | ||
foreach ($map['hotTopicSummaries'] as $item) { | ||
$model->hotTopicSummaries[$n++] = null !== $item ? hotTopicSummaries::fromMap($item) : $item; | ||
} | ||
} | ||
} | ||
if (isset($map['sessionId'])) { | ||
$model->sessionId = $map['sessionId']; | ||
} | ||
if (isset($map['taskId'])) { | ||
$model->taskId = $map['taskId']; | ||
} | ||
if (isset($map['text'])) { | ||
$model->text = $map['text']; | ||
} | ||
if (isset($map['usage'])) { | ||
$model->usage = usage::fromMap($map['usage']); | ||
} | ||
|
||
return $model; | ||
} | ||
} |
Oops, something went wrong.