Skip to content

Instantly share code, notes, and snippets.

@UdaraAlwis
Created December 16, 2019 13:16
Show Gist options
  • Save UdaraAlwis/4470303683ce8ba8133f0e02a3e1601d to your computer and use it in GitHub Desktop.
Save UdaraAlwis/4470303683ce8ba8133f0e02a3e1601d to your computer and use it in GitHub Desktop.
An model class representing a Question Field in Google Forms...
// 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