Example #1
0
        /// <summary>
        /// create
        /// </summary>
        /// <param name="pathMessageSid"> The message_sid </param>
        /// <param name="pathAccountSid"> The account_sid </param>
        /// <param name="outcome"> The outcome </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Feedback </returns>
        public static FeedbackResource Create(string pathMessageSid,
                                              string pathAccountSid = null,
                                              FeedbackResource.OutcomeEnum outcome = null,
                                              ITwilioRestClient client             = null)
        {
            var options = new CreateFeedbackOptions(pathMessageSid)
            {
                PathAccountSid = pathAccountSid, Outcome = outcome
            };

            return(Create(options, client));
        }
Example #2
0
        /// <summary>
        /// create
        /// </summary>
        /// <param name="pathMessageSid"> The message_sid </param>
        /// <param name="pathAccountSid"> The account_sid </param>
        /// <param name="outcome"> The outcome </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Feedback </returns>
        public static async System.Threading.Tasks.Task <FeedbackResource> CreateAsync(string pathMessageSid,
                                                                                       string pathAccountSid = null,
                                                                                       FeedbackResource.OutcomeEnum outcome = null,
                                                                                       ITwilioRestClient client             = null)
        {
            var options = new CreateFeedbackOptions(pathMessageSid)
            {
                PathAccountSid = pathAccountSid, Outcome = outcome
            };

            return(await CreateAsync(options, client));
        }