integrate/app/consumer/nextcloud/main.py

26 lines
572 B
Python
Raw Normal View History

2022-04-29 14:13:54 +02:00
from unittest.mock import MagicMock
2022-04-29 14:56:51 +02:00
from app.consumer.baseConsumer import BaseGroup, BaseUser, Consumer
2022-04-29 14:13:54 +02:00
class Api:
def create_user(self):
pass
2022-04-29 14:56:51 +02:00
class NextcloudConsumer(Consumer):
2022-04-29 14:13:54 +02:00
def __init__(self):
self._api: Api = Api()
@property
def api(self):
return self._api
@api.setter
def api(self, api):
self._api = api
def create_user(self, user: BaseUser): # Wekan):
return self.api.create_user()
def create_group(self, group: BaseGroup):
print("Create Nextcloud Group: ", group)
pass