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)); }
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)); }