Ejemplo n.º 1
0
        /// <summary>
        /// Creates a message under the specified account.
        /// </summary>
        /// <param name="accountId">Account ID.</param>
        /// <param name="toNumber">To number.</param>
        /// <param name="fromNumber">From number.</param>
        /// <param name="body">Body.</param>
        /// <param name="mediaUrls">Media Urls.</param>
        /// <param name="connectorId">Connector ID.</param>
        /// <param name="client">REST client.</param>
        /// <returns></returns>
        private static Message Create(int accountId, string toNumber, string fromNumber, string body = null, List <string> mediaUrls = null, int?connectorId = null, IVcRestClient client = null)
        {
            CreateMessage createMessage = new CreateMessage(toNumber, fromNumber)
            {
                Body        = body,
                MediaUrls   = mediaUrls,
                ConnectorId = connectorId
            };

            return(Create(accountId, createMessage, client));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a message under the specified account.
 /// </summary>
 /// <param name="accountId">Account ID.</param>
 /// <param name="createMessage">CreateMessage.</param>
 /// <param name="client">REST client.</param>
 /// <returns></returns>
 private static Message Create(int accountId, CreateMessage createMessage, IVcRestClient client = null)
 {
     return(Create <Message>(BuildCreateUrl(accountId), createMessage, client: client));
 }