Class ResponseSession
A survey response session (previously a survey submission form) is the list of answers input by a respondent on a single specific instance of a survey form.
public class ResponseSession
- Inheritance
-
ResponseSession
- Inherited Members
- Extension Methods
Constructors
ResponseSession()
public ResponseSession()
Properties
Answers
The list of answers in the session.
public List<ResponseAnswer> Answers { get; set; }
Property Value
Completed
When was the session started? If a session is completed, unlocked, and recompleted at a later time, then this property stores the date/time when the session was last completed.
public DateTimeOffset? Completed { get; set; }
Property Value
Created
When was the session created?
public DateTimeOffset? Created { get; set; }
Property Value
Form
The survey form for the session.
public Guid Form { get; set; }
Property Value
Group
public Guid? Group { get; set; }
Property Value
- Guid?
Identifier
Uniquely identifies the session.
public Guid Identifier { get; set; }
Property Value
IsLocked
Changes to the answers in a session are disallowed when the session is locked.
public bool IsLocked { get; set; }
Property Value
Language
The language preference indicated by the respondent/user.
public string Language { get; set; }
Property Value
LastQuestion
The last question answered by the respondent.
public Guid? LastQuestion { get; set; }
Property Value
- Guid?
Period
public Guid? Period { get; set; }
Property Value
- Guid?
Source
Information about the source of this data (e.g. Authored|Uploaded|Upgraded|Copied).
public string Source { get; set; }
Property Value
Started
When was the session started? If a session is started, paused, and restarted at a later time, then this property stores the date/time when the session was first started.
public DateTimeOffset? Started { get; set; }
Property Value
Status
Created | Started | Completed
public ResponseSessionStatus Status { get; set; }
Property Value
Tenant
The organization account in which the session occurs.
public Guid Tenant { get; set; }
Property Value
User
The respondent/user answering questions.
public Guid User { get; set; }
Property Value
Methods
ContainsAnswer(Guid)
public bool ContainsAnswer(Guid question)
Parameters
questionGuid
Returns
ContainsOption(Guid)
public bool ContainsOption(Guid option)
Parameters
optionGuid
Returns
FindAnswer(Guid)
public ResponseAnswer FindAnswer(Guid question)
Parameters
questionGuid
Returns
FindAnswerAndOption(Guid, out ResponseAnswer, out ResponseOption)
public bool FindAnswerAndOption(Guid optionId, out ResponseAnswer answer, out ResponseOption option)
Parameters
optionIdGuidanswerResponseAnsweroptionResponseOption
Returns
FindOption(Guid)
public ResponseOption FindOption(Guid optionId)
Parameters
optionIdGuid
Returns
FindOptions(List<SurveyOptionItem>)
public ResponseOption[] FindOptions(List<SurveyOptionItem> items)
Parameters
itemsList<SurveyOptionItem>
Returns
FlattenOptionItems()
public ResponseOption[] FlattenOptionItems()
Returns
Initialize()
public void Initialize()