-
Notifications
You must be signed in to change notification settings - Fork 4
/
CalloutInterfaceHandler.cs
49 lines (47 loc) · 1.62 KB
/
CalloutInterfaceHandler.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// This class provides compatibility with Opus' Callout Interface Plugin.
using CalloutInterfaceAPI;
using Rage;
using LSPD_First_Response;
namespace YobbinCallouts
{
/// <summary>
/// Functions for CalloutInterface.
/// </summary>
internal static class CalloutInterfaceHandler
{
/// <summary>
/// DEPRECATED REMOVE LATER
/// </summary>
/// <param name="sender">The originating callout.</param>
/// <param name="priority">The priority of the callout (e.g. CODE 2, CODE 3).</param>
/// <param name="agency">The agency that should be handling the callout (e.g. LSPD, LSSD).</param>
/// DEPRECATED REMOVE LATER
public static void SendCalloutDetails(LSPD_First_Response.Mod.Callouts.Callout sender, string priority, string agency = "")
{
try
{
//Functions.SendCalloutDetails(sender, priority, agency);
}
catch (System.Exception ex)
{
// insert logging here
}
}
/// <summary>
/// Sends a message to the MDT.
/// </summary>
/// <param name="sender">The sending callout.</param>
/// <param name="message">The message.</param>
public static void SendMessage(LSPD_First_Response.Mod.Callouts.Callout sender, string message)
{
try
{
Functions.SendMessage(sender, message);
}
catch (System.Exception e)
{
Game.LogTrivial("YOBBINCALLOUTS: ERROR WITH CALLOUTINTERFACE SENDMESSAGE.");
}
}
}
}