aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Net/IpEndPointInfo.cs
blob: 5fd331a16698c75a3b0f2d2a936b01bb19f35994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;

namespace MediaBrowser.Model.Net
{
    public class IpEndPointInfo
    {
        public IpAddressInfo IpAddress { get; set; }

        public int Port { get; set; }

        public override string ToString()
        {
            var ipAddresString = IpAddress == null ? string.Empty : IpAddress.ToString();

            return ipAddresString + ":" + this.Port.ToString();
        }
    }
}