Hub

class Hub : Parcelable


Representation of a GHP Hub containing necessary information for activation

Summary

Nested types

Builder for constructing a Hub instance.

Public companion functions

Hub.Builder

Returns an empty Hub.Builder instance.

Public constructors

Hub(
    serviceInstanceName: String,
    serviceType: String,
    port: Int,
    ipAddresses: List<String>
)

Public functions

final Int
open operator Boolean
equals(other: Any?)
open Int
open Unit
writeToParcel(dest: Parcel, flags: Int)

Public properties

List<String>

The ip addresses the discovered hub advertises.

Int

The port number the hub is listening on.

String

The service instance name of the discovered hub.

String

The service type of the discovered hub.

Public companion functions

builder

fun builder(): Hub.Builder

Returns an empty Hub.Builder instance.

Public constructors

Hub

Hub(
    serviceInstanceName: String,
    serviceType: String,
    port: Int,
    ipAddresses: List<String>
)

Public functions

describeContents

final fun describeContents(): Int

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

writeToParcel

open fun writeToParcel(dest: Parcel, flags: Int): Unit

Public properties

ipAddresses

val ipAddressesList<String>

The ip addresses the discovered hub advertises.

port

val portInt

The port number the hub is listening on.

serviceInstanceName

val serviceInstanceNameString

The service instance name of the discovered hub.

serviceType

val serviceTypeString

The service type of the discovered hub.