mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-04-17 19:58:27 +00:00
Fix #62 Remove fromContact
This commit is contained in:
parent
6b90b29900
commit
a5c3339cfe
1 changed files with 0 additions and 8 deletions
|
|
@ -24,14 +24,6 @@ use Carbon\Carbon;
|
|||
|
||||
class Device extends Model
|
||||
{
|
||||
public function fromContact(\stdClass $contact)
|
||||
{
|
||||
$this->uuid = \substr($contact->{'unique-id'}, 2, -2);
|
||||
$this->expires_at = Carbon::createFromTimestamp($contact->{'expires-at'});
|
||||
$this->update_time = Carbon::createFromTimestamp($contact->{'update-time'});
|
||||
$this->user_agent = $contact->{'user-agent'};
|
||||
}
|
||||
|
||||
public function fromRedisContact(string $contact)
|
||||
{
|
||||
// Ugly :'(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue