-
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.
Merge pull request #3 from v-empower/zeeshan-kaveem/upgradation
SDK upgrade for Delete Contact, Delete Meetings, Delete Recordings, Get Single Recordings & archive Meetings.
- Loading branch information
Showing
8 changed files
with
153 additions
and
5 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
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,20 @@ | ||
<?php | ||
namespace MeetHourApp\Types; | ||
class DeleteContact { | ||
public int $contact_id; | ||
|
||
public function __construct(int $contact_id) { | ||
$this->contact_id = $contact_id; | ||
} | ||
public function prepare() { | ||
$deleteContactProperties = [ | ||
"contact_id" => $this->contact_id | ||
]; | ||
foreach ($deleteContactProperties as $key => $value) { | ||
if ($value === null) { | ||
unset($deleteContactProperties[$key]); | ||
} | ||
} | ||
return $deleteContactProperties; | ||
} | ||
} |
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,20 @@ | ||
<?php | ||
namespace MeetHourApp\Types; | ||
class DeleteMeeting { | ||
public int $meeting_id; | ||
|
||
public function __construct(int $meeting_id) { | ||
$this->meeting_id = $meeting_id; | ||
} | ||
public function prepare() { | ||
$deleteMeetingProperties = [ | ||
"meeting_id" => $this->meeting_id | ||
]; | ||
foreach ($deleteMeetingProperties as $key => $value) { | ||
if ($value === null) { | ||
unset($deleteMeetingProperties[$key]); | ||
} | ||
} | ||
return $deleteMeetingProperties; | ||
} | ||
} |
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,20 @@ | ||
<?php | ||
namespace MeetHourApp\Types; | ||
class DeleteRecording { | ||
public int $recording_id; | ||
|
||
public function __construct(int $recording_id) { | ||
$this->recording_id = $recording_id; | ||
} | ||
public function prepare() { | ||
$deleteRecordingProperties = [ | ||
"recording_id" => $this->recording_id | ||
]; | ||
foreach ($deleteRecordingProperties as $key => $value) { | ||
if ($value === null) { | ||
unset($deleteRecordingProperties[$key]); | ||
} | ||
} | ||
return $deleteRecordingProperties; | ||
} | ||
} |
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,20 @@ | ||
<?php | ||
namespace MeetHourApp\Types; | ||
class GetSingleRecording { | ||
public int $recording_id; | ||
|
||
public function __construct(int $recording_id) { | ||
$this->recording_id = $recording_id; | ||
} | ||
public function prepare() { | ||
$getSingleRecordingProperties = [ | ||
"recording_id" => $this->recording_id | ||
]; | ||
foreach ($getSingleRecordingProperties as $key => $value) { | ||
if ($value === null) { | ||
unset($getSingleRecordingProperties[$key]); | ||
} | ||
} | ||
return $getSingleRecordingProperties; | ||
} | ||
} |
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