최근 메시지만 전송 받도록 수정.

This commit is contained in:
2018-04-16 08:18:40 +09:00
parent db97400b43
commit bc3a8fefd8
6 changed files with 69 additions and 20 deletions
+11
View File
@@ -66,4 +66,15 @@ class MessageTarget extends Target {
'icon'=>$this->icon
];
}
public function toArrayLight() : array{
//TODO: 이걸 꼭 연관 배열로 보낼 이유가 없다.
//TODO: 아이콘도 축약 가능하다.
return [
'name'=>$this->generalName,
'nation'=>$this->nationName,
'color'=>$this->color,
'icon'=>$this->icon
];
}
}