Beispiel #1
0
        public virtual Vision6ResponseObject Add(Vision6Autoresponder autoResponder)
        {
            var requestObject = new Vision6RequestObject
            {
                Method = Methods.AddAutoresponder,
            };

            requestObject.Params.Add(autoResponder);

            return(Requestor.Post(requestObject));
        }
Beispiel #2
0
        public virtual Vision6ResponseObject AddIfNotExist(Vision6Autoresponder autoResponder)
        {
            var result = Count(autoResponder.ListId, autoResponder.MessageId);

            if (result.IsSuccess())
            {
                if ((int)result.Result == 0)
                {
                    return(Add(autoResponder));
                }
            }
            return(result);
        }