notification

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package notification contains auto-generated files. DO NOT MODIFY

Package notification contains auto-generated files. DO NOT MODIFY

Package notification contains auto-generated files. DO NOT MODIFY

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for managing service notification See https://www.twilio.com/docs/conversations/api/service-notification-resource for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the notification client

func (Client) Fetch

func (c Client) Fetch() (*FetchNotificationResponse, error)

Fetch retrieves service notification resource See https://www.twilio.com/docs/conversations/api/service-notification-resource#fetch-a-servicenotification-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) FetchWithContext

func (c Client) FetchWithContext(context context.Context) (*FetchNotificationResponse, error)

FetchWithContext retrieves service notification resource See https://www.twilio.com/docs/conversations/api/service-notification-resource#fetch-a-servicenotification-resource for more details

func (Client) Update

Update modifies a service notification resource See https://www.twilio.com/docs/conversations/api/service-notification-resource#update-a-servicenotification-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) UpdateWithContext

func (c Client) UpdateWithContext(context context.Context, input *UpdateNotificationInput) (*UpdateNotificationResponse, error)

UpdateWithContext modifies a service notification resource See https://www.twilio.com/docs/conversations/api/service-notification-resource#update-a-servicenotification-resource for more details

type ClientProperties

type ClientProperties struct {
	ServiceSid string
}

ClientProperties are the properties required to manage the notification resources

type FetchNotificationConversationActionResponse added in v0.6.0

type FetchNotificationConversationActionResponse struct {
	Enabled  bool    `json:"enabled"`
	Sound    *string `json:"sound,omitempty"`
	Template *string `json:"template,omitempty"`
}

type FetchNotificationNewMessageResponse added in v0.6.0

type FetchNotificationNewMessageResponse struct {
	BadgeCountEnabled *bool   `json:"badge_count_enabled,omitempty"`
	Enabled           bool    `json:"enabled"`
	Sound             *string `json:"sound,omitempty"`
	Template          *string `json:"template,omitempty"`
}

type FetchNotificationResponse

type FetchNotificationResponse struct {
	AccountSid              string                                      `json:"account_sid"`
	AddedToConversation     FetchNotificationConversationActionResponse `json:"added_to_conversation"`
	ChatServiceSid          string                                      `json:"chat_service_sid"`
	LogEnabled              bool                                        `json:"log_enabled"`
	NewMessage              FetchNotificationNewMessageResponse         `json:"new_message"`
	RemovedFromConversation FetchNotificationConversationActionResponse `json:"removed_from_conversation"`
	URL                     string                                      `json:"url"`
}

FetchNotificationResponse defines the response fields for the retrieved service notification

type UpdateNotificationConversationActionInput added in v0.6.0

type UpdateNotificationConversationActionInput struct {
	Enabled  *bool   `form:"Enabled,omitempty"`
	Sound    *string `form:"Sound,omitempty"`
	Template *string `form:"Template,omitempty"`
}

type UpdateNotificationConversationActionResponse added in v0.6.0

type UpdateNotificationConversationActionResponse struct {
	Enabled  bool    `json:"enabled"`
	Sound    *string `json:"sound,omitempty"`
	Template *string `json:"template,omitempty"`
}

type UpdateNotificationInput

type UpdateNotificationInput struct {
	AddedToConversation     *UpdateNotificationConversationActionInput `form:"AddedToConversation,omitempty"`
	LogEnabled              *bool                                      `form:"LogEnabled,omitempty"`
	NewMessage              *UpdateNotificationNewMessageInput         `form:"NewMessage,omitempty"`
	RemovedFromConversation *UpdateNotificationConversationActionInput `form:"RemovedFromConversation,omitempty"`
}

UpdateNotificationInput defines input fields for updating a service notification resource

type UpdateNotificationNewMessageInput added in v0.6.0

type UpdateNotificationNewMessageInput struct {
	BadgeCountEnabled *bool   `form:"BadgeCountEnabled,omitempty"`
	Enabled           *bool   `form:"Enabled,omitempty"`
	Sound             *string `form:"Sound,omitempty"`
	Template          *string `form:"Template,omitempty"`
}

type UpdateNotificationNewMessageResponse added in v0.6.0

type UpdateNotificationNewMessageResponse struct {
	BadgeCountEnabled *bool   `json:"badge_count_enabled,omitempty"`
	Enabled           bool    `json:"enabled"`
	Sound             *string `json:"sound,omitempty"`
	Template          *string `json:"template,omitempty"`
}

type UpdateNotificationResponse

type UpdateNotificationResponse struct {
	AccountSid              string                                       `json:"account_sid"`
	AddedToConversation     UpdateNotificationConversationActionResponse `json:"added_to_conversation"`
	ChatServiceSid          string                                       `json:"chat_service_sid"`
	LogEnabled              bool                                         `json:"log_enabled"`
	NewMessage              UpdateNotificationNewMessageResponse         `json:"new_message"`
	RemovedFromConversation UpdateNotificationConversationActionResponse `json:"removed_from_conversation"`
	URL                     string                                       `json:"url"`
}

UpdateNotificationResponse defines the response fields for the updated service notification

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL