mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 16:45:17 +00:00
Can get and return following state of a user.
This commit is contained in:
@ -19,7 +19,8 @@ class GroupMember extends BaseUniqueObjectFromUser {
|
||||
|
||||
//Private fields
|
||||
private $group_id = 1;
|
||||
private $level = -1;
|
||||
private $level = -1;
|
||||
private $following;
|
||||
|
||||
//Set and get group id
|
||||
public function set_group_id(int $group_id){
|
||||
@ -46,4 +47,13 @@ class GroupMember extends BaseUniqueObjectFromUser {
|
||||
public function get_level() : int {
|
||||
return $this->level;
|
||||
}
|
||||
|
||||
//Set and get following status
|
||||
public function set_following(bool $following){
|
||||
$this->is_following = $following;
|
||||
}
|
||||
|
||||
public function isFollowing() : bool {
|
||||
return $this->is_following;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user