C# 向Podio类别字段添加选项

C# 向Podio类别字段添加选项,c#,podio,C#,Podio,更新类别字段时遇到问题。我看到config.settings是一个jobject,是我创建的,但我没有做正确的事情 这是我到目前为止所拥有的 var config = new FieldConfig() { Label = "New Category", Required = false, Hidden = true}; config.Settings = new Setting { Multiple = false, Display = "inline", Option

更新类别字段时遇到问题。我看到config.settings是一个jobject,是我创建的,但我没有做正确的事情

这是我到目前为止所拥有的

var config = new FieldConfig() { Label = "New Category", Required = false, Hidden = true};
config.Settings = new Setting
{
    Multiple = false,
    Display = "inline",
    Options = new List<Option>()
    {
        new Option { Status = "active", Id = 1, Text = "One", Color = "DCEBD8" },
        new Option { Status = "active", Id = 2, Text = "Two", Color = "DCEBD8" },
        new Option { Status = "active", Id = 3, Text = "Three", Color = "DCEBD8" }
    }
};
await GV.podio.ApplicationService.UpdateAnAppField(123, 123, config);
var config=new FieldConfig(){Label=“new Category”,Required=false,Hidden=true};
config.Settings=新设置
{
多重=假,
Display=“inline”,
选项=新列表()
{
新选项{Status=“active”,Id=1,Text=“One”,Color=“DCEBD8”},
新选项{Status=“active”,Id=2,Text=“Two”,Color=“DCEBD8”},
新选项{Status=“active”,Id=3,Text=“Three”,Color=“DCEBD8”}
}
};
等待GV.podio.ApplicationService.UpdateAnAppField(123123,配置);
还有JSON

    public partial class Setting
    {
        [JsonProperty("multiple", NullValueHandling = NullValueHandling.Ignore)]
        public bool? Multiple { get; set; }

        [JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]
        public List<Option> Options { get; set; }

        [JsonProperty("display", NullValueHandling = NullValueHandling.Ignore)]
        public string Display { get; set; }
    }

    public partial class Option
    {
        [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
        public string Status { get; set; }

        [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
        public string Text { get; set; }

        [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)]
        public long? Id { get; set; }

        [JsonProperty("color", NullValueHandling = NullValueHandling.Ignore)]
        public string Color { get; set; }
    }
公共部分类设置
{
[JsonProperty(“多个”,NullValueHandling=NullValueHandling.Ignore)]
公共布尔?多重{get;set;}
[JsonProperty(“选项”,NullValueHandling=NullValueHandling.Ignore)]
公共列表选项{get;set;}
[JsonProperty(“显示”,NullValueHandling=NullValueHandling.Ignore)]
公共字符串显示{get;set;}
}
公共部分类选项
{
[JsonProperty(“状态”,NullValueHandling=NullValueHandling.Ignore)]
公共字符串状态{get;set;}
[JsonProperty(“text”,NullValueHandling=NullValueHandling.Ignore)]
公共字符串文本{get;set;}
[JsonProperty(“id”,NullValueHandling=NullValueHandling.Ignore)]
公共long?Id{get;set;}
[JsonProperty(“color”,NullValueHandling=NullValueHandling.Ignore)]
公共字符串颜色{get;set;}
}

所以。。。。问题是什么?嘿,帕夫洛,问题是。。。如何向Podio类别字段添加选项?