@using System.Linq @inherits AutoRest.Core.Template @Header("// ") @EmptyLine namespace @(Settings.Namespace).@(Settings.ModelsName) { @EmptyLine /// /// Defines a page in Azure responses. /// /// Type of the page content items [Newtonsoft.Json.JsonObject] public class @Model.TypeDefinitionName : Microsoft.Rest.Azure.IPage { /// /// Gets the link to the next page. /// [Newtonsoft.Json.JsonProperty("@Model.NextLinkName")] public System.String NextPageLink { get; private set; } @EmptyLine [Newtonsoft.Json.JsonProperty("@Model.ItemName")] private System.Collections.Generic.IList Items{ get; set; } @EmptyLine /// /// 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(); } @EmptyLine /// /// 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(); } } }