private object GetSubscriptionResponse(EventSubscriptionResponse response) { return ResultFactory.GetResult(response.Content, response.ContentType, response.Headers); }
private EventSubscriptionResponse GetEventSubscriptionResponse(string subscriptionId, int timeoutSeconds) { var response = new EventSubscriptionResponse { Content = "\r\n", ContentType = "text/plain" }; response.Headers["SID"] = subscriptionId; response.Headers["TIMEOUT"] = "SECOND-" + timeoutSeconds.ToString(_usCulture); return response; }