forked from beorereleverion/go-ews
/
PlayOnPhoneResponseExchangeWebServices.go
39 lines (33 loc) · 2.54 KB
/
PlayOnPhoneResponseExchangeWebServices.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
package elements
// The PlayOnPhoneResponse element specifies the response to a request to play a voice mail over the telephone.
// https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/playonphoneresponse-exchange-web-services
import "encoding/xml"
type PlayOnPhoneResponseExchangeWebServices struct {
XMLName xml.Name
// The DescriptiveLinkKey element is currently unused and is reserved for future use. It contains a value of 0.
DescriptiveLinkKey *DescriptiveLinkKey `xml:"DescriptiveLinkKey"`
// The MessageText element provides a text description of the status of the response.
MessageText *MessageText `xml:"MessageText"`
// The MessageXml element provides additional error response information.
MessageXml *MessageXml `xml:"MessageXml"`
// The PhoneCallId element specifies the identifier of a phone call. This element is required.
PhoneCallId *PhoneCallId `xml:"PhoneCallId"`
// The ResponseCode element provides status information about the request.
ResponseCode *ResponseCode `xml:"ResponseCode"`
// Describes the status of the response. The following values are valid for this attribute: - Success - Warning - Error
ResponseClass *string `xml:"ResponseClass,attr"`
}
const (
// Describes a request that is fulfilled.
PlayOnPhoneResponseExchangeWebServicesSuccess = `Success`
// Describes a request that was not processed. A warning may be returned if an error occurred while an item in the request was processing and subsequent items could not be processed. The following are examples of sources of warnings: - The Exchange store is offline during the batch. - Active Directory Domain Services (AD DS) is offline. - Mailboxes were moved. - The message database (MDB) is offline. - A password is expired. - A quota has been exceeded.
PlayOnPhoneResponseExchangeWebServicesWarning = `Warning`
// Describes a request that cannot be fulfilled. The following are examples of sources of errors: - Invalid attributes or elements. - Attributes or elements that are out of range - An unknown tag. - An attribute or element that is not valid in the context. - An unauthorized access attempt by any client. - A server-side failure in response to a valid client-side call. Information about the error can be found in the ResponseCode and MessageText element topics.
PlayOnPhoneResponseExchangeWebServicesError = `Error`
)
func (P *PlayOnPhoneResponseExchangeWebServices) SetForMarshal() {
P.XMLName.Local = "m:PlayOnPhoneResponse"
}
func (P *PlayOnPhoneResponseExchangeWebServices) GetSchema() *Schema {
return &SchemaMessages
}