示例#1
0
        internal FieldConfig InitializeFieldSettings()
        {
            FieldConfig config = null;

            if (this.InternalConfig == null)
            {
                this.InternalConfig = config = new FieldConfig();
            }
            else
            {
                config = this.InternalConfig;
            }


            if (this.InternalConfig.Settings == null)
            {
                this.InternalConfig.Settings = new JObject();
            }

            return(config);
        }
 /// <summary>
 /// Updates the configuration of an app field. The type of the field cannot be updated, only the configuration.
 /// <para>Podio API Reference: https://developers.podio.com/doc/applications/update-an-app-field-22356 </para>
 /// </summary>
 /// <param name="appId"></param>
 /// <param name="fieldId"></param>
 /// <param name="config"></param>
 public void UpdateAnAppField(int appId, int fieldId, FieldConfig config)
 {
     string url = string.Format("/app/{0}/field/{1}", appId, fieldId);
     _podio.Put<dynamic>(url, config);
 }
示例#3
0
 /// <summary>
 ///     Updates the configuration of an app field. The type of the field cannot be updated, only the configuration.
 ///     <para>Podio API Reference: https://developers.podio.com/doc/applications/update-an-app-field-22356 </para>
 /// </summary>
 /// <param name="appId"></param>
 /// <param name="fieldId"></param>
 /// <param name="config"></param>
 public async System.Threading.Tasks.Task UpdateAnAppField(int appId, int fieldId, FieldConfig config)
 {
     string url = string.Format("/app/{0}/field/{1}", appId, fieldId);
     await _podio.Put<dynamic>(url, config);
 }