public Builder Clear()
            {
                _ttl                 = 0;
                _type                = TransportType.Unknown;
                _ssrc                = null;
                _source              = null;
                _destination         = null;
                _clientPorts         = null;
                _serverPorts         = null;
                _multicastPorts      = null;
                _interleavedChannels = null;
                _extras              = ImmutableList.CreateBuilder <string>();

                return(this);
            }
 internal TransportHeader(TransportType type,
                          string ssrc,
                          int ttl,
                          string source,
                          string destination,
                          PortPair clientPorts,
                          PortPair serverPorts,
                          PortPair multicastPorts,
                          PortPair interleavedChannels,
                          ImmutableList <string> extras)
 {
     Type                = type;
     SSRC                = ssrc;
     TTL                 = ttl;
     Source              = source;
     Destination         = destination;
     ClientPorts         = clientPorts;
     ServerPorts         = serverPorts;
     MulticastPorts      = multicastPorts;
     InterleavedChannels = interleavedChannels;
     Extras              = extras;
 }
            public Builder InterleavedChannels(PortPair pair)
            {
                _interleavedChannels = pair;

                return(this);
            }
            public Builder MulticastPorts(PortPair pair)
            {
                _multicastPorts = pair;

                return(this);
            }
            public Builder ServerPorts(PortPair pair)
            {
                _serverPorts = pair;

                return(this);
            }
            public Builder ClientPorts(PortPair pair)
            {
                _clientPorts = pair;

                return(this);
            }