コード例 #1
0
        private Dictionary <string, string> GetContactFields()
        {
            try
            {
                if (this.contactFields == null)
                {
                    this.contactFields = new Dictionary <string, string>();

                    var filt = new fieldsFilter();

                    var fields = wrapper.ReadFields(filt);

                    if (fields != null)
                    {
                        foreach (fieldObject field in fields)
                        {
                            this.contactFields.Add(field.id, field.name);
                        }
                    }
                }
            }
            catch (Exception e)
            {
                Logger.Error(e);
                throw e;
            }

            return(this.contactFields);
        }
コード例 #2
0
 public fieldObject[] ReadFields(fieldsFilter filter)
 {
     return(api.readFields(filter, 0));
 }