Repository navigation
Expand file tree
/
Copy pathAddCommentRequest.php
More file actions
32 lines (29 loc) · 2.08 KB
/
Copy pathAddCommentRequest.php
File metadata and controls
32 lines (29 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
declare(strict_types=1);
namespace GetStream\GeneratedModels;
class AddCommentRequest extends BaseModel
{
public function __construct(
public ?string $id = null, // Optional custom ID for the comment (max 255 characters). If not provided, a UUID will be generated.
public ?string $objectID = null, // ID of the object to comment on. Required for root comments
public ?string $objectType = null, // Type of the object to comment on. Required for root comments
public ?string $comment = null, // Text content of the comment
/** @var array<Attachment>|null */
#[ArrayOf(Attachment::class)]
public ?array $attachments = null, // Media attachments for the reply
public ?array $mentionedUserIds = null, // List of users mentioned in the reply
public ?string $parentID = null, // ID of parent comment for replies. When provided, object_id and object_type are automatically inherited from the parent comment.
public ?object $custom = null, // Custom data for the comment
public ?bool $createNotificationActivity = null, // Whether to create a notification activity for this comment
/** @deprecated */
public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
public ?bool $skipPush = null,
public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for this comment
public ?bool $forceModeration = null, // If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
public ?string $userID = null,
public ?UserRequest $user = null, // User request object
) {
}
// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}