Skip to content

Commit 3eed3e6

Browse files
committed
DEVX-9451: class ordering
1 parent 819475d commit 3eed3e6

File tree

1 file changed

+26
-26
lines changed
  • messages/src/vonage_messages/models

1 file changed

+26
-26
lines changed

messages/src/vonage_messages/models/mms.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -147,32 +147,6 @@ class MmsFile(BaseMms):
147147
message_type: MessageType = MessageType.FILE
148148

149149

150-
class MmsContent(BaseMms):
151-
"""Model for an MMS message with content that can be of various types.
152-
153-
Args:
154-
content (list[MmsContentItem]): A list of content items for the message (images, audio, video, files, or vCards).
155-
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
156-
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
157-
ttl (int, Optional): The duration in seconds for which the message is valid.
158-
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
159-
client_ref (str, Optional): An optional client reference.
160-
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
161-
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
162-
"""
163-
164-
content: list[
165-
Union[
166-
MmsContentItemImage,
167-
MmsContentItemAudio,
168-
MmsContentItemVideo,
169-
MmsContentItemFile,
170-
MmsContentItemVcard,
171-
]
172-
]
173-
message_type: MessageType = MessageType.CONTENT
174-
175-
176150
class MmsContentItemImage(MmsResource):
177151
"""Model for an image content item in an MMS Content message.
178152
@@ -234,3 +208,29 @@ class MmsContentItemVcard(MmsResource):
234208
type_: MmsContentItemType = Field(
235209
MmsContentItemType.VCARD, serialization_alias='type'
236210
)
211+
212+
213+
class MmsContent(BaseMms):
214+
"""Model for an MMS message with content that can be of various types.
215+
216+
Args:
217+
content (list[MmsContentItem]): A list of content items for the message (images, audio, video, files, or vCards).
218+
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
219+
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
220+
ttl (int, Optional): The duration in seconds for which the message is valid.
221+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
222+
client_ref (str, Optional): An optional client reference.
223+
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
224+
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
225+
"""
226+
227+
content: list[
228+
Union[
229+
MmsContentItemImage,
230+
MmsContentItemAudio,
231+
MmsContentItemVideo,
232+
MmsContentItemFile,
233+
MmsContentItemVcard,
234+
]
235+
]
236+
message_type: MessageType = MessageType.CONTENT

0 commit comments

Comments
 (0)