SurveyResponse

Odpowiedź w ankiecie.

Zapis JSON
{
  "survey": string,
  "rating": enum (SurveyRating),
  "feedback": string,
  "createTime": string,
  "surveyQuestionId": string,
  "questionResponseText": string,
  "questionResponsePostbackData": string,
  "questionType": enum (SurveyQuestionType),
  "questionIndex": integer,
  "totalQuestionCount": integer,
  "surveyTriggerSource": enum (SurveyTriggerSource)
}
Pola
survey

string

Ankieta wysłana do użytkownika. Podejmuje wartość "conversations/{conversationId}/surveys/{surveyId}" gdzie {conversationId} jest unikalnym identyfikatorem rozmowy, a {surveyId} – niepowtarzalnym.

rating

enum (SurveyRating)

Ocena podana przez użytkownika.

feedback

string

Opinia tekstowa użytkownika.

Opcjonalne.

createTime

string (Timestamp format)

Godzina odpowiedzi na ankietę.

Sygnatura czasowa w formacie RFC3339 UTC &Zulu" z rozdzielczością nanosekundy i do 9 cyfr po przecinku. Przykłady: "2014-10-02T15:01:23Z" i "2014-10-02T15:01:23.045123456Z".

surveyQuestionId

string

Niepowtarzalny identyfikator pytania.

questionResponseText

string

Tekst, który użytkownik kliknął jako odpowiedź na pytanie.

questionResponsePostbackData

string

dane wywołania zwrotnego odpowiedzi na pytanie kliknięte przez użytkownika;

questionType

enum (SurveyQuestionType)

Typ pytania.

questionIndex

integer

Indeks pytania w ankiecie.

totalQuestionCount

integer

Łączna liczba pytań w ankiecie.

surveyTriggerSource

enum (SurveyTriggerSource)

Źródło wyzwalacza ankiety.