-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchat_participants.py
More file actions
46 lines (37 loc) · 1.16 KB
/
chat_participants.py
File metadata and controls
46 lines (37 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from mpt_api_client.http import AsyncService, Service
from mpt_api_client.http.mixins import (
AsyncCollectionMixin,
AsyncCreateMixin,
AsyncDeleteMixin,
AsyncUpdateMixin,
CollectionMixin,
CreateMixin,
DeleteMixin,
UpdateMixin,
)
from mpt_api_client.models import Model
class ChatParticipant(Model):
"""Helpdesk Chat Participant resource."""
class ChatParticipantsServiceConfig:
"""Helpdesk Chat Participants service configuration."""
_endpoint = "/public/v1/helpdesk/chats/{chat_id}/participants"
_model_class = ChatParticipant
_collection_key = "data"
class ChatParticipantsService(
CreateMixin[ChatParticipant],
UpdateMixin[ChatParticipant],
DeleteMixin,
CollectionMixin[ChatParticipant],
Service[ChatParticipant],
ChatParticipantsServiceConfig,
):
"""Helpdesk Chat Participants service."""
class AsyncChatParticipantsService(
AsyncCreateMixin[ChatParticipant],
AsyncUpdateMixin[ChatParticipant],
AsyncDeleteMixin,
AsyncCollectionMixin[ChatParticipant],
AsyncService[ChatParticipant],
ChatParticipantsServiceConfig,
):
"""Async Helpdesk Chat Participants service."""