mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Can get and return following state of a user.
This commit is contained in:
		@@ -41,6 +41,7 @@ class GroupInfo extends BaseUniqueObject {
 | 
			
		||||
	private $registration_level = -1;
 | 
			
		||||
	private $posts_level = -1;
 | 
			
		||||
	private $virtual_directory;
 | 
			
		||||
	private $following = FALSE;
 | 
			
		||||
    
 | 
			
		||||
    //Get and set the name of group
 | 
			
		||||
    public function set_name(string $name){
 | 
			
		||||
@@ -160,4 +161,13 @@ class GroupInfo extends BaseUniqueObject {
 | 
			
		||||
	public function get_virtual_directory() : string {
 | 
			
		||||
		return $this->virtual_directory != null ? $this->virtual_directory : "null";
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	//Set and get following status
 | 
			
		||||
	public function set_following(bool $following){
 | 
			
		||||
		$this->following = $following;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public function isFollowing() : bool {
 | 
			
		||||
		return $this->following;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user