Class Origin
An SDP origin element.
Inheritance
Inherited Members
Namespace: FM.LiveSwitch.Sdp
Assembly: FM.LiveSwitch.dll
Syntax
public class Origin
Constructors
Origin(String)
Initializes a new instance of the Origin class.
Declaration
public Origin(string unicastAddress)
Parameters
Type | Name | Description |
---|---|---|
System.String | unicastAddress | The address of the machine from which the session was created. |
Origin(String, String)
Initializes a new instance of the Origin class.
Declaration
public Origin(string unicastAddress, string username)
Parameters
Type | Name | Description |
---|---|---|
System.String | unicastAddress | The address of the machine from which the session was created. |
System.String | username | The user's login on the originating host. |
Properties
AddressType
Gets or sets the type of the address. See AddressType for possible values.
Declaration
public string AddressType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NetworkType
Gets or sets the type of network. See NetworkType for possible values.
Declaration
public string NetworkType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SessionId
Gets or sets the globally unique identifier for the session.
Declaration
public long SessionId { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
SessionVersion
Gets or sets the version number for the session.
Declaration
public long SessionVersion { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
UnicastAddress
Gets or sets the address of the machine from which the session was created.
Declaration
public string UnicastAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Username
Gets or sets the user's login on the originating host.
Declaration
public string Username { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Parse(String)
Creates an Origin instance from a string.
Declaration
public static Origin Parse(string s)
Parameters
Type | Name | Description |
---|---|---|
System.String | s | The string to parse. |
Returns
Type | Description |
---|---|
Origin |
ToString()
Converts this instance to a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |