-
Notifications
You must be signed in to change notification settings - Fork 12
/
botconnectorbotversion.go
29 lines (21 loc) · 1.02 KB
/
botconnectorbotversion.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
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Botconnectorbotversion - A version description for a botConnector bot.
type Botconnectorbotversion struct {
// Version - The name of the version. This can be up to 100 characters long and must be comprised of displayable characters without leading or trailing whitespace
Version *string `json:"version,omitempty"`
// SupportedLanguages - The supported languages for this bot. EG 'en-us' or 'es', etc; These language codes are W3C language identification tags (ISO 639-1 for the language name and ISO 3166 for the country code)
SupportedLanguages *[]string `json:"supportedLanguages,omitempty"`
// Intents - A list of potential intents this bot will return, limit of 50
Intents *[]Botintent `json:"intents,omitempty"`
}
// String returns a JSON representation of the model
func (o *Botconnectorbotversion) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}