Skip to content
Snippets Groups Projects
WorldAnalysisREST_Webhook.cs 1.12 KiB
Newer Older
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ETSI.ARF.OpenAPI.WorldAnalysis;
using ETSI.ARF.WorldAnalysis;
using ETSI.ARF.WorldAnalysis.REST;

//Implementation of the WorldAnalysis interface
public partial class WorldAnalysisREST
{
    //
    // Inspector variables
    //
    public StringEvent webhookMessage;
    private bool webhookRunning = false;

    #region Communication system for WebHooks
    private void WebHookServer_Create(string url)
    {
        webhookRunning = true;
        throw new Exception("[API] WebHookServer_Create(): Not implemented!");
    }

    private void WebHookServer_Close()
    {
        if (webhookRunning)
        {
            webhookRunning = false;
            throw new Exception("[API] WebHookServer_Close(): Not implemented!");
        }
    }

    private object WebHookServer_OnReceive()
    {
        throw new Exception("[API] WebHookServer_OnReceive(): Not implemented!");
    }

    private void WebHookServer_Send(object message)
    {
        throw new Exception("[API] WebHookServer_Send(): Not implemented!");
    }
    #endregion
}