Lovense Integration: LovenseIntegration/Source/LovenseIntegration/Classes/Adapters/LovenseConnectMobileAdapter.h Source File

Lovense Integration

LovenseConnectMobileAdapter.h
1 // (CVN) - Candy Valley Network GmbH
2
3 #pragma once
4
5 #include <CoreMinimal.h>
6
7 // EXTERNAL INCLUDES
8
9 // INTERNAL INCLUDES
10 #include "Adapters/LovenseConnectAdapterBase.h"
11
12
16 class LovenseConnectMobileAdapter : public LovenseConnectAdapterBase {
17 public:
18 LovenseConnectMobileAdapter();
19
20 protected:
21 virtual FHttpRequestPtr CreateHTTPRequest_GetToys() override;
22 virtual FHttpRequestPtr CreateHTTPRequest_SendCommand(const FString& command) override;
23
24 #if WITH_LOVENSE
25
30 virtual FString GetVerb() = 0;
31 #endif
32 };
33
34
38 class LovenseConnectAndroidAdapter : public LovenseConnectMobileAdapter {
39 public:
40 LovenseConnectAndroidAdapter() : LovenseConnectMobileAdapter() {}
41
42 #if WITH_LOVENSE
43 virtual FString GetVerb() override { return TEXT("POST"); }
44 #endif
45 };
46
47
51 class LovenseConnectIOSAdapter : public LovenseConnectMobileAdapter {
52 public:
53 LovenseConnectIOSAdapter() : LovenseConnectMobileAdapter() {}
54
55 #if WITH_LOVENSE
56 virtual FString GetVerb() override { return TEXT("GET"); }
57 #endif
58 };
LovenseConnectMobileAdapter
Abstract base class for Lovense Connect mobile adapters.
Definition: LovenseConnectMobileAdapter.h:16
LovenseConnectAndroidAdapter
Adapter representing the Lovense Connect android app.
Definition: LovenseConnectMobileAdapter.h:38
LovenseConnectMobileAdapter::CreateHTTPRequest_GetToys
virtual FHttpRequestPtr CreateHTTPRequest_GetToys() override
Create HTTP request to poll for toy info. Each API+Platform combination requires different HTTP req...
Definition: LovenseConnectMobileAdapter.cpp:16
LovenseConnectMobileAdapter::CreateHTTPRequest_SendCommand
virtual FHttpRequestPtr CreateHTTPRequest_SendCommand(const FString &command) override
Create HTTP request to send a command. Each API+Platform combination requires different HTTP reques...
Definition: LovenseConnectMobileAdapter.cpp:25
LovenseConnectAdapterBase
Base class for all Lovense Connect adapters.
Definition: LovenseConnectAdapterBase.h:16
LovenseConnectIOSAdapter
Adapter representing the Lovense Connect iOS app.
Definition: LovenseConnectMobileAdapter.h:51