예제 #1
0
        public virtual T GetPreviousPage <T>(TwilioListBase resourceResult) where T : TwilioListBase, new()
        {
            var request = new RestRequest();

            request.Resource = resourceResult.PreviousPageUri.OriginalString.Replace("/" + ApiVersion, "");

            return(Execute <T>(request));
        }
예제 #2
0
        public virtual void GetPreviousPage <T>(TwilioListBase resourceResult, Action <T> callback) where T : TwilioListBase, new()
        {
            var request = new RestRequest();

            request.Resource = resourceResult.PreviousPageUri.OriginalString.Replace("/" + ApiVersion, "");

            ExecuteAsync <T>(request, (response) => callback(response));
        }