using System;
using System.Collections.Generic;
using System.Net;
using com.itac.mes.imsapi.protocol;

namespace com.itac.mes.imsapi.transport
{
    public sealed class IhapClientOptions
    {
        public string ServiceUrl { get; set; }
        public IList<string> ClusterNodes { get; } = new List<string>();
        public string AppId { get; set; } = "IMSApiDotNet";
        public string AppType { get; set; }
        public TimeSpan Timeout { get; set; } = TimeSpan.FromSeconds(30);
        public bool EnableFailover { get; set; } = true;
        public bool CompressRequests { get; set; }
        public bool IgnoreNetworkPrefix { get; set; }
        public string AuthorizationHeader { get; set; }
        public IWebProxy Proxy { get; set; }
        public IhapProtocolMode ProtocolMode { get; set; } = IhapProtocolMode.BinaryHash;
    }
}
