Esempio n. 1
0
 /// <summary>
 /// Create a SmartReplyRequest instance using specified information
 /// </summary>
 /// <param name="accountId">Specified the account Id</param>
 /// <param name="clientId">Specified the client Id</param>
 /// <param name="mime">Specified the mime</param>
 /// <param name="source">Specified the SmartReplySource</param>
 /// <returns>A SmartReplyRequest instance</returns>
 public static SmartReplyRequest CreateSmartReplyRequest(string accountId, string clientId, string mime, Request.Source source)
 {
     SmartReplyRequest request = new SmartReplyRequest();
     Request.SmartReply requestData = new Request.SmartReply
     {
         AccountId = accountId,
         ClientId = clientId,
         Mime = mime,
         Source = source
     };
     request.RequestData = requestData;
     return request;
 }
Esempio n. 2
0
 /// <summary>
 /// Create an empty SmartReplyRequest instance
 /// </summary>
 /// <returns>An empty SmartReplyRequest instance</returns>
 public static SmartReplyRequest CreateSmartReplyRequest()
 {
     SmartReplyRequest request = new SmartReplyRequest();
     Request.SmartReply requestData = new Request.SmartReply();
     request.RequestData = requestData;
     return request;
 }