Class PolarisRequestClient
Client for displaying recommendation requests in Phoenix.
Inheritance
System.Object
PolarisRequestClient
Namespace: Phoenix.Polaris
Assembly: Phoenix.Plugin.Polaris.dll
Syntax
public class PolarisRequestClient : IPolarisPhoenixRequestClient
Constructors
View SourcePolarisRequestClient(IPhoenixLogger, IDeviceManager)
Initializes a new instance of the PolarisRequestClient class.
Declaration
public PolarisRequestClient(IPhoenixLogger logger, IDeviceManager deviceManager)
Parameters
Type | Name | Description |
---|---|---|
IPhoenixLogger | logger | The logger. |
IDeviceManager | deviceManager | The device manager. |
Properties
View SourceDeviceManager
Declaration
public IDeviceManager DeviceManager { get; }
Property Value
Type | Description |
---|---|
IDeviceManager |
Logger
Gets the Phoenix logger.
Declaration
public IPhoenixLogger Logger { get; }
Property Value
Type | Description |
---|---|
IPhoenixLogger |
Methods
View SourceGetDeviceDisplayName(String)
Get the device display name based on the ip address.
Declaration
public string GetDeviceDisplayName(string ipAddress)
Parameters
Type | Name | Description |
---|---|---|
System.String | ipAddress | The ip of the device the game is running on. |
Returns
Type | Description |
---|---|
System.String | The device display name. |
GetDeviceTypeName(String)
Get the device type name based on the ip address.
Declaration
public string GetDeviceTypeName(string ipAddress)
Parameters
Type | Name | Description |
---|---|---|
System.String | ipAddress | The ip of the device the game is running on. |
Returns
Type | Description |
---|---|
System.String | The device type name. |
LogToPhoenix(String, Object[])
Writes a log to the Phoenix console.
Declaration
public void LogToPhoenix(string entry, params object[] parameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | entry | The log entry. |
System.Object[] | parameters | The parameters to write into the log entry. |
SendPolarisRequests(String, String, List<PhoenixRequestBase>)
Sends Polaris recommendation requests.
Declaration
public void SendPolarisRequests(string titleName, string ipAddress, List<PhoenixRequestBase> requests)
Parameters
Type | Name | Description |
---|---|---|
System.String | titleName | The name of the game these requests are for. |
System.String | ipAddress | The ip of the device. |
System.Collections.Generic.List<PhoenixRequestBase> | requests | A list of requests to send. |