/// <summary> /// Create a SmartForwardRequest 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 SmartForwardSource</param> /// <returns>A SmartForwardRequest instance</returns> public static SmartForwardRequest CreateSmartForwardRequest(string accountId, string clientId, string mime, Request.Source source) { SmartForwardRequest request = new SmartForwardRequest(); Request.SmartForward requestData = new Request.SmartForward { AccountId = accountId, ClientId = clientId, Mime = mime, Source = source }; request.RequestData = requestData; return request; }
/// <summary> /// Create an empty SmartForwardRequest instance /// </summary> /// <returns>An empty SmartForwardRequest instance</returns> public static SmartForwardRequest CreateSmartForwardRequest() { SmartForwardRequest request = new SmartForwardRequest(); Request.SmartForward requestData = new Request.SmartForward(); request.RequestData = requestData; return request; }