%- project.commentHeader %>
namespace <%- project.namespace %>.Models
{
///
/// Defines a page in Azure responses.
///
/// Type of the page content items
[Newtonsoft.Json.JsonObject]
public class <%-page.className%> : Microsoft.Rest.Azure.IPage
{
///
/// Gets the link to the next page.
///
[Newtonsoft.Json.JsonProperty("<%-page.nextLinkName%>")]
public System.String NextPageLink { get; private set; }
[Newtonsoft.Json.JsonProperty("<%-page.itemName%>")]
private System.Collections.Generic.IList Items{ get; set; }
///
/// Returns an enumerator that iterates through the collection.
///
/// A an enumerator that can be used to iterate through the collection.
public System.Collections.Generic.IEnumerator GetEnumerator()
{
return (Items == null) ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator();
}
///
/// Returns an enumerator that iterates through the collection.
///
/// A an enumerator that can be used to iterate through the collection.
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
}
}