/
model_get_message_info_response.go
60 lines (57 loc) · 4.28 KB
/
model_get_message_info_response.go
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* RingCentral Connect Platform API Explorer
*
* <p>This is a beta interactive API explorer for the RingCentral Connect Platform. To use this service, you will need to have an account with the proper credentials to generate an OAuth2 access token.</p><p><h2>Quick Start</h2></p><ol><li>1) Go to <b>Authentication > /oauth/token</b></li><li>2) Enter <b>app_key, app_secret, username, password</b> fields and then click \"Try it out!\"</li><li>3) Upon success, your access_token is loaded and you can access any form requiring authorization.</li></ol><h2>Links</h2><ul><li><a href=\"https://github.com/ringcentral\" target=\"_blank\">RingCentral SDKs on Github</a></li><li><a href=\"mailto:devsupport@ringcentral.com\">RingCentral Developer Support Email</a></li></ul>
*
* API version: 1.0
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package ringcentral
import (
"time"
)
type GetMessageInfoResponse struct {
// Internal identifier of a message
Id string `json:"id,omitempty"`
// Canonical URI of a message
Uri string `json:"uri,omitempty"`
// The list of message attachments
Attachments []MessageAttachmentInfo `json:"attachments,omitempty"`
// Message availability status. Message in 'Deleted' state is still preserved with all its attachments and can be restored. 'Purged' means that all attachments are already deleted and the message itself is about to be physically deleted shortly
Availability string `json:"availability,omitempty"`
// SMS and Pager only. Identifier of the conversation the message belongs to
ConversationId int32 `json:"conversationId,omitempty"`
// Message creation datetime in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z
CreationTime time.Time `json:"creationTime,omitempty"`
// SMS only. Delivery error code returned by gateway
DeliveryErrorCode string `json:"deliveryErrorCode,omitempty"`
// Message direction. Note that for some message types not all directions are allowed. For example voicemail messages can be only inbound
Direction string `json:"direction,omitempty"`
// Fax only. Page count in fax message
FaxPageCount int32 `json:"faxPageCount,omitempty"`
// Fax only. Resolution of fax message. ('High' for black and white image scanned at 200 dpi, 'Low' for black and white image scanned at 100 dpi)
FaxResolution string `json:"faxResolution,omitempty"`
From MessageStoreCallerInfoResponse `json:"from,omitempty"`
// The datetime when the message was modified on server in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z
LastModifiedTime time.Time `json:"lastModifiedTime,omitempty"`
// Message status. Different message types may have different allowed status values.For outbound faxes the aggregated message status is returned: If status for at least one recipient is 'Queued', then 'Queued' value is returned If status for at least one recipient is 'SendingFailed', then 'SendingFailed' value is returned In other cases Sent status is returned
MessageStatus string `json:"messageStatus,omitempty"`
// Pager only True if at least one of the message recipients is Department extension
PgToDepartment bool `json:"pgToDepartment,omitempty"`
// Message priority
Priority string `json:"priority,omitempty"`
// Message read status
ReadStatus string `json:"readStatus,omitempty"`
// SMS only. The datetime when outbound SMS was delivered to recipient's handset in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. It is filled only if the carrier sends a delivery receipt to RingCentral
SmsDeliveryTime time.Time `json:"smsDeliveryTime,omitempty"`
// SMS only. Number of attempts made to send an outbound SMS to the gateway (if gateway is temporary unavailable)
SmsSendingAttemptsCount int32 `json:"smsSendingAttemptsCount,omitempty"`
// Message subject. For SMS and Pager messages it replicates message text which is also returned as an attachment
Subject string `json:"subject,omitempty"`
// Recipient information
To []MessageStoreCallerInfoResponse `json:"to,omitempty"`
// Message type
Type string `json:"type,omitempty"`
// Voicemail only. Status of voicemail to text transcription. If VoicemailToText feature is not activated for account, the 'NotAvailable' value is returned
VmTranscriptionStatus string `json:"vmTranscriptionStatus,omitempty"`
}