19 public function __construct(
20 ApiQuery $queryModule,
24 parent::__construct( $queryModule, $moduleName,
'qmgs' );
25 $this->groupSubscription = $groupSubscription;
28 public function execute():
void {
29 if ( !$this->groupSubscription->isEnabled() ) {
30 $this->dieWithError(
'apierror-translate-messagegroupsubscription-disabled' );
32 $watchedMessageGroups = $this->groupSubscription->getUserSubscriptions( $this->getUser() );
33 $result = $this->getResult();
34 $result->addValue( [
'query' ], $this->getModuleName(), $watchedMessageGroups );
37 public function isInternal():
bool {