Class IpPortConnectionDetails
IpPortConnectionDetails model
Inherited Members
Namespace: Unity.Services.Matchmaker.Models
Assembly: Unity.Services.Multiplayer.dll
Syntax
[Preserve]
[DataContract(Name = "IpPortConnectionDetails")]
public class IpPortConnectionDetails
Constructors
IpPortConnectionDetails(string, string, int, Dictionary<string, object>)
Creates an instance of IpPortConnectionDetails.
Declaration
[Preserve]
public IpPortConnectionDetails(string type, string ip = null, int port = 0, Dictionary<string, object> customData = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | type | type param |
| string | ip | ip param |
| int | port | port param |
| Dictionary<string, object> | customData | customData param |
Properties
CustomData
Parameter customData of IpPortConnectionDetails
Declaration
[Preserve]
[JsonConverter(typeof(JsonObjectCollectionConverter))]
[DataMember(Name = "customData", EmitDefaultValue = false)]
public Dictionary<string, IDeserializable> CustomData { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, IDeserializable> |
Ip
Parameter ip of IpPortConnectionDetails
Declaration
[Preserve]
[DataMember(Name = "ip", EmitDefaultValue = false)]
public string Ip { get; }
Property Value
| Type | Description |
|---|---|
| string |
Port
Parameter port of IpPortConnectionDetails
Declaration
[Preserve]
[DataMember(Name = "port", EmitDefaultValue = false)]
public int Port { get; }
Property Value
| Type | Description |
|---|---|
| int |
Type
Parameter type of IpPortConnectionDetails
Declaration
[Preserve]
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
public string Type { get; }
Property Value
| Type | Description |
|---|---|
| string |