Skip to content

Latest commit

 

History

History
99 lines (51 loc) · 2.35 KB

session.md

File metadata and controls

99 lines (51 loc) · 2.35 KB

model

import "github.com/dueros/bot-sdk-go/bot/model"

dialog.go intent.go request.go response.go session.go ssml_builder.go

type Session struct {
    // contains filtered or unexported fields
}
func NewSession(data data.Session) *Session

func (*Session) GetAttribute

func (this *Session) GetAttribute(key string) string

获取session中对应字段的值

func (*Session) GetData

func (this *Session) GetData() data.Session

func (*Session) GetId

func (this *Session) GetId() string

获取session id

func (*Session) IsNew

func (this *Session) IsNew() bool

当前session是否是新的

func (*Session) SetAttribute

func (this *Session) SetAttribute(key, value string)

设置session中对应字段的值


Generated by godoc2md