mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
Add direct deep-link to attachments
This commit is contained in:
@@ -12,6 +12,7 @@ class Attach extends Entity implements JsonSerializable {
|
||||
protected $createdAt;
|
||||
protected $previewUrl;
|
||||
protected $redirectUrl;
|
||||
protected $deepLinkUrl;
|
||||
|
||||
public function setPreviewUrl($previewUrl) {
|
||||
$this->previewUrl = $previewUrl;
|
||||
@@ -21,14 +22,19 @@ class Attach extends Entity implements JsonSerializable {
|
||||
$this->redirectUrl = $redirectUrl;
|
||||
}
|
||||
|
||||
public function setDeepLinkUrl($deepLinkUrl) {
|
||||
$this->deepLinkUrl = $deepLinkUrl;
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'note_id' => $this->noteId,
|
||||
'file_id' => $this->fileId,
|
||||
'created_at' => $this->createdAt,
|
||||
'preview_url' => $this->previewUrl,
|
||||
'redirect_url' => $this->redirectUrl
|
||||
'id' => $this->id,
|
||||
'note_id' => $this->noteId,
|
||||
'file_id' => $this->fileId,
|
||||
'created_at' => $this->createdAt,
|
||||
'preview_url' => $this->previewUrl,
|
||||
'redirect_url' => $this->redirectUrl,
|
||||
'deep_link_url' => $this->deepLinkUrl
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user