data

package
v0.0.0-...-852b98d Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 0 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	ApplicationId string
}

type AudioPlayerContext

type AudioPlayerContext struct {
	Token                string
	OffsetInMilliseconds int32 `json:"offsetInMilliSeconds,omitempty"`
	PlayActivity         string
}

type AudioPlayerEventRequest

type AudioPlayerEventRequest struct {
	Request struct {
		Token                string
		OffsetInMilliseconds int32 `json:"offsetInMilliSeconds,omitempty"` //Audio Player Event
		// contains filtered or unexported fields
	}
}

type Context

type Context struct {
	System      System
	AudioPlayer AudioPlayerContext
	VideoPlayer VideoPlayerContext
}

type ContextResponse

type ContextResponse struct {
	Intent Intent `json:"intent"`
}

type Device

type Device struct {
	DeviceId            string
	SupportedInterfaces map[string]interface{}
}

type DialogDirective

type DialogDirective struct {
	Type          string `json:"type"`
	SlotToElicit  string `json:"slotToElicit,omitempty"`
	SlotToConfirm string `json:"slotToConfirm,omitempty"`
	UpdatedIntent Intent `json:"updatedIntent"`
}

type EventRequest

type EventRequest struct {
	Request struct {
		Token string
		Url   string `json:"url,omitempty"`
		Name  string `json:"name,omitempty"`
		// contains filtered or unexported fields
	}
}

事件请求

type Intent

type Intent struct {
	Name               string          `json:"name"`
	Slots              map[string]Slot `json:"slots"`
	ConfirmationStatus string          `json:"confirmationStatus"`
}

type IntentRequest

type IntentRequest struct {
	Request IntentRequestBody
}

type IntentRequestBody

type IntentRequestBody struct {
	Query       Query
	DialogState string
	Intents     []Intent
	// contains filtered or unexported fields
}

type LaunchRequest

type LaunchRequest struct {
	Request baseRequest
}

打开请求

type Query

type Query struct {
	Type     string
	Original string
}

intent request

type RequestPart

type RequestPart struct {
	Version string
	Session Session
	Context Context
	Request baseRequest
}

公共请求体

type Session

type Session struct {
	New        bool
	SessionId  string
	Attributes map[string]string
}

type SessionEndedRequest

type SessionEndedRequest struct {
	Request SessionEndedRequestBody
}

type SessionEndedRequestBody

type SessionEndedRequestBody struct {
	Reason string
	// contains filtered or unexported fields
}

退出请求

type SessionResponse

type SessionResponse struct {
	Attributes map[string]string `json:"attributes"`
}

--------response------

type Slot

type Slot struct {
	Name               string `json:"name"`
	Value              string `json:"value"`
	ConfirmationStatus string `json:"confirmationStatus"`
}

type Speech

type Speech struct {
	Type string `json:"type"`
	Text string `json:"text,omitempty"`
	Ssml string `json:"ssml,omitempty"`
}

type System

type System struct {
	User        User
	Application Application
	Device      Device
}

type User

type User struct {
	UserId      string
	AccessToken string
	UserInfo    UserInfo
}

type UserInfo

type UserInfo struct {
}

type VideoPlayerContext

type VideoPlayerContext struct {
	Token                string
	OffsetInMilliseconds int32 `json:"offsetInMilliseconds,omitempty"`
	PlayActivity         string
}

type VideoPlayerEventRequest

type VideoPlayerEventRequest struct {
	Request struct {
		Token                string
		OffsetInMilliseconds int32 `json:"offsetInMilliseconds,omitempty"` //Audio Player Event
		// contains filtered or unexported fields
	}
}

Jump to

Keyboard shortcuts

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