Skip to content

Instantly share code, notes, and snippets.

@UdaraAlwis
Last active December 9, 2019 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UdaraAlwis/55aaeca4bd7b3959bd0b5a713cb43194 to your computer and use it in GitHub Desktop.
Save UdaraAlwis/55aaeca4bd7b3959bd0b5a713cb43194 to your computer and use it in GitHub Desktop.
An enum model class representing a Question Field Types Google Forms...
// using System.ComponentModel;
/// <summary>
/// Found the Field type representation values with trial
/// and error try out of blood sweat and tears lol! ;)
/// </summary>
public enum GoogleFormsFieldTypeEnum
{
[Description("Short Answer Field")]
ShortAnswerField = 0,
[Description("Paragraph Field")]
ParagraphField = 1,
[Description("Multiple Choice Field")]
MultipleChoiceField = 2,
[Description("Check Boxes Field")]
CheckBoxesField = 4,
[Description("Drop Down Field")]
DropDownField = 3,
// FileUpload - Not supported (needs user log in session)
[Description("File Upload Field")]
FileUploadField = 13,
[Description("Linear Scale Field")]
LinearScaleField = 5,
// represents both: Multiple Choice Grid | Checkbox Grid
[Description("Grid Choice Field")]
GridChoiceField = 7,
[Description("Date Field")]
DateField = 9,
[Description("Time Field")]
TimeField = 10,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment