Created
December 16, 2019 13:16
-
-
Save UdaraAlwis/4470303683ce8ba8133f0e02a3e1601d to your computer and use it in GitHub Desktop.
An model class representing a Question Field in Google Forms...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using System.Collections.Generic; | |
/// <summary> | |
/// A Question Field in a Google Form | |
/// </summary> | |
public class GoogleFormField | |
{ | |
/// <summary> | |
/// Type of the Question Field | |
/// </summary> | |
public GoogleFormsFieldTypeEnum QuestionType { get; set; } | |
/// <summary> | |
/// Question text of the Field | |
/// </summary> | |
public string QuestionText { get; set; } | |
/// <summary> | |
/// The unique Id need to be used | |
/// when submitting the answer | |
/// I also refer to this as: Field Id | |
/// </summary> | |
public string AnswerSubmissionId { get; set; } | |
/// <summary> | |
/// Available Answer List for any kind of | |
/// multiple answer selection field | |
/// </summary> | |
public List<string> AnswerOptionList { get; set; } = new List<string>(); | |
/// <summary> | |
/// If the answer is required to Submit | |
/// </summary> | |
public bool IsAnswerRequired { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment