// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Linq;

namespace SampleTypeSpec
{
    /// <summary> The ListWithStringNextLinkResponse. </summary>
    internal partial class ListWithStringNextLinkResponse
    {
        /// <summary> Keeps track of any properties unknown to the library. </summary>
        private protected readonly IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        /// <summary> Initializes a new instance of <see cref="ListWithStringNextLinkResponse"/>. </summary>
        /// <param name="things"></param>
        internal ListWithStringNextLinkResponse(IEnumerable<Thing> things)
        {
            Things = things.ToList();
        }

        /// <summary> Initializes a new instance of <see cref="ListWithStringNextLinkResponse"/>. </summary>
        /// <param name="things"></param>
        /// <param name="next"></param>
        /// <param name="additionalBinaryDataProperties"> Keeps track of any properties unknown to the library. </param>
        internal ListWithStringNextLinkResponse(IList<Thing> things, string next, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Things = things;
            Next = next;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        /// <summary> Gets the Things. </summary>
        public IList<Thing> Things { get; }

        /// <summary> Gets the Next. </summary>
        public string Next { get; }
    }
}
