<?php
namespace OCA\Chores\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Member extends Entity implements JsonSerializable {
protected $teamId;
protected $memberUserId;
protected $displayName;
protected $points;
public function __construct() {
$this->addType('teamId', 'integer');
$this->addType('memberUserId', 'string');
$this->addType('points', 'integer');
}
public function jsonSerialize() {
return [
'team_id' => $this->teamId,
'member' => $this->memberUserId,
'displayName' => $this->displayName,
'points' => $this->points,
];
}
}