Пример #1
0
        /// <summary>
        /// Update information of a subscriber list
        /// </summary>
        /// <returns></returns>
        public async Task <ResultBase> UpdateAsync(ParamSubscriberListUpdate param)
        {
            var list = new Dictionary <string, string> {
                { nameof(param.ListID), param.ListID.ToString() }
            };

            if (param.Name.IsNotNullOrEmpty())
            {
                list.Add(nameof(param.Name), param.Name);
            }
            if (param.OptInMode.IsNotNull())
            {
                list.Add(nameof(param.OptInMode), param.OptInMode.ToString());
            }

            return(await Http.Value.PostAsync <ResultBase>(SendloopAddress.SubscriberListSettingsGet, list));
        }
Пример #2
0
 /// <summary>
 /// Update information of a subscriber list
 /// </summary>
 /// <returns></returns>
 public ResultBase Update(ParamSubscriberListUpdate param)
 => UpdateAsync(param).GetAwaiter().GetResult();