using System;
using System.Collections.Generic;
namespace LaunchDarkly.EventSource
{
///
/// Provides data for the state of the connection.
///
///
public class StateChangedEventArgs : EventArgs
{
///
/// Gets the state of the EventSource connection.
///
///
/// One of the values, which represents the state of the EventSource connection.
///
public ReadyState ReadyState { get; }
///
/// Get the response headers. Only populated for .
///
/// A collection of header values when the ReadyState is Open, or null.
///
///
public IEnumerable>> Headers { get; }
///
/// Initializes a new instance of the class.
///
/// One of the values, which represents the state of the EventSource connection.
/// Response headers when the is . Otherwise null.
public StateChangedEventArgs(ReadyState readyState, IEnumerable>> headers = null)
{
ReadyState = readyState;
Headers = headers;
}
}
}