Fix #62 Remove fromContact

This commit is contained in:
Timothée Jaussoin 2022-12-21 17:19:47 +01:00
parent 6b90b29900
commit a5c3339cfe

View file

@ -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 :'(