Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
breakoutModewide
languagec#
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;

namespace com.doforms.rest.client
{
    public class TokenRequestBlob
    {
        public string usernamekey { get; set; }
        public string passwordid { get; set; }
        public string accounttype { get; set; }
    }
    public class Column
    {
        public string codename { get; set; }
        public string webservicecaption { get; set; }
    }
    public class TokenResultChoice
    {
        public string tokentext { get; set; }
        public stringLabel codelabel { get; set; }
    }
    public class Device
    {
        public string[] accountskey { get; set; }
        public string messagename { get; set; }
    }     public class Errorpublic string carrier { get; set; }
        public DateTimeOffset createTime { get; set; }
        public stringDateTimeOffset codeformTime { get; set; }
        public string requestmodel { get; set; }
        public string exceptionnumber { get; set; }
        public string messageos { get; set; }

   }     public classstring ProjectteamKey { get; set; }
{         public stringDateTimeOffset keyupdateTime { get; set; }
        public string nameversion { get; set; }
    }
    public class TeamEmail
    {
        public stringList<string> keyaddresses { get; set; }
        public string namemessage { get; set; }
    }
    }
    public class DeviceError
    {
        public string keycode { get; set; }
        public string namerequest { get; set; }       
         public string carrierexception { get; set; }
        public DateTimeOffsetstring createTimemessage { get; set; }
    }
    public DateTimeOffsetclass Fax
formTime { get; set; }{
        public stringList<string> modeladdresses { get; set; }  
              public string numbermessage { get; set; }
    }
    public stringclass Field
os { get; set; }{
        public string teamKeyname { get; set; }
        public DateTimeOffset updateTime[JsonProperty("data")]
        [JsonConverter(typeof(StringEnumConverter))]
        public DataType data { get; set; }
        [JsonProperty("type")]
        [JsonConverter(typeof(StringEnumConverter))]
        public ControlType type { get; set; }
        //Begin data fields
        public Blob blob { get; set; }
        public DateTimeOffset? date { get; set; } //Ignore the time value which will always be 00:00:00Z
        public DateTimeOffset? datetime { get; set; }
        public Email email { get; set; }
        public Fax fax { get; set; }
        public long? integer { get; set; }
        public Location location { get; set; }
        public double? number { get; set; }
        public List<string> strings { get; set; }
        public string versiontext { get; set; }
        public DateTimeOffset? time { get; set; } //Ignore date value which will always be Jan 1, 1970
 public   class Form   //End data {fields
        public string keyvalue { get; set; } //Default value
        public stringOptions idoptions { get; set; }
        public stringList<Choice> namechoices { get; set; }
        public stringList<Field> displayNamefields { get; set; }
        public DateTimeOffsetList<Row> createTimerows { get; set; }
    }
    public class stringForm
createUser { get; set; }{
        public DateTimeOffsetstring updateTimekey { get; set; }
        public string updateUserid { get; set; }
        public doublestring versionname { get; set; }
        public List<Field>string fieldsdisplayName { get; set; }
    }
    public classDateTimeOffset SubmissioncreateTime { get; set;  {}
        public string keycreateUser { get; set; }
        public stringDateTimeOffset idupdateTime { get; set; }
        public string nameupdateUser { get; set; }
        public stringdouble formKeyversion { get; set; }
        public stringList<Field> formNamefields { get; set; }
    }
    public doubleclass Label
formVersion { get; set; }{
        public string projectKeyen { get; set; }
    }
    public class intLocation
offset { get; set; }{
        public stringdouble? timezonelatitude { get; set; }
        public double? longitude { get; set; }
        public DateTimeOffsetdouble? receiveTimealtitude { get; set; }
        public List<Field>double? fieldsaccuracy { get; set; }
    }
    public class FieldLookup
    {
        public string namekey { get; set; }
        [JsonProperty("data")]
        [JsonConverter(typeof(StringEnumConverter))]public string name { get; set; }
        public DataTypestring datadescription { get; set; }
        [JsonProperty("type")]
        [JsonConverter(typeof(StringEnumConverter))]public bool useForm { get; set; }
        public ControlTypebool typeuseFilter { get; set; }
        public string formKey { //Begin data fieldsget; set; }
        public Blobstring blobprojectKey { get; set; }
        public stringbool commentupdate { get; set; }
        public DateTimeOffset?bool dateencrypt { get; set; } //Ignore the time value which will always be 00:00:00Z
        public long version { get; set; }
        public DateTimeOffset? datetimecreateTime { get; set; }
        public Emailstring emailcreateUser { get; set; }
        public FaxDateTimeOffset faxupdateTime { get; set; }
        public long?string integerupdateUser { get; set; }
        public LocationList<Column> locationcolumns { get; set; }
    }
    public class double?Options
number { get; set; }{
        public List<string>bool stringscomment { get; set; }
        public string textformat { get; set; }  
              public DateTimeOffset?Label timelabel { get; set; } //Ignore date value which will always be Jan 1, 1970 }
        public stringint valuelevel { get; set; }
        //End data
fields         public Optionsstring optionsprefix { get; set; }
        public List<Choice>long? choicesrows { get; set; }
    }
    public List<Field>class Project
fields { get; set; }{
        public List<Row>string rowskey { get; set; }
    }     public classstring Blobname { get; set; }
{    }
    public class stringRow
key { get; set; }{
        public stringlong idindex { get; set; }
        public stringList<Field> typefields { get; set; }
    }
    public class EmailSubmission
    {
        public List<string>string addresseskey { get; set; }
        public string messageid { get; set; }

   }     public classstring Faxname { get; set; }
{         public List<string>string addressesformKey { get; set; }
        public string messageformName { get; set; }
        public double formVersion { get; set; }
    public class Location  public string projectKey { get; set; }
        public double?int latitudeoffset { get; set; }
        public double?string longitudetimezone { get; set; }
        public double?DateTimeOffset altitudereceiveTime { get; set; }
        public double?List<Field> accuracyfields { get; set; }
    }
    public class OptionsTeam
    {
        public boolstring commentkey { get; set; }
        public string formatname { get; set; }
        public
Label label { get; set; }
 

     public int level { get; set; }class TokenRequest
        {
         public string prefixusername { get; set; }
        public long?string rowspassword { get; set; }

   }     public classstring Choiceaccount { get; set; }
{         public string textcode { get; set; }
        public Labelstring labelwebservice { get; set; }
    }
    public class LabelTokenResult
    {
        public string entoken { get; set; }

   }     public classstring Rowcode { get; set; }
{         public longstring[] indexaccounts { get; set; }
        public List<Field>string fieldsmessage { get; set; }
    }
    public enum ControlType
    {
        action,
        approval,
        audio,
        autonumber,
        barcode,
        bluetooth_le,
        button,
        button_grid,
        calculation,
        choose_one,
        choose_multiple,
        comment,
        counter,
        date_time,
        email,
        fax,
        forward,
        grid,
        image,
        instruction,
        label,
        location,
        lookup,
        nfc,
        numeric,
        page,
        payment,
        pod,
        question,
        questionnaire,
        repeat,
        retrieve,
        schedule,
        score,
        score_summary,
        signature,
        sketch,
        table,
        text,
        trends,
        video
    }

    public enum DataType
    {
        blob,
        date,
        datetime,
        email,
        fax,
        fields,
        integer,
        location,
        number,
        rows,
        strings,
        text,
        time
    }
}

...