zdk.net
BanafoEventsHandler.h
1 //
2 // BanafoEventsHandler.h
3 // ZDK
4 //
5 
6 #ifndef ZDK_NET_BanafoEventsHandler_h
7 #define ZDK_NET_BanafoEventsHandler_h
8 
9 #include "BanafoServiceState.h"
10 #include "BanafoRequestState.h"
11 #include "BanafoEventType.h"
12 #include "BanafoEventState.h"
13 #include "BanafoContactSearchCriteria.h"
14 #include "Pagination.h"
15 #include "BanafoContact.h"
16 #include "BanafoIntegration.h"
17 #include "BanafoProfile.h"
18 #include "TranscriptLanguage.h"
19 #include "EventHandle.h"
20 #include "PublicInterfaces.h"
21 #include "GeneralStatusEventListener.h"
22 
23 namespace ZDK_NET
24 {
25  ref class BanafoServiceState;
26  ref class BanafoRequestState;
27  ref class BanafoEventState;
28  ref class BanafoContactSearchCriteria;
29  ref class Pagination;
30  ref class BanafoProfile;
31 
40  public delegate void OnServiceStateUnmanaged(ZDK::Shared::BanafoServiceState state);
41  public delegate void OnServiceState(ZDK_NET::BanafoServiceState^ state);
42 
52  public delegate void OnRequestStateUnmanaged(ZDK::ZDKHandle requestId, ZDK::Shared::BanafoRequestState state);
53  public delegate void OnRequestState(long long requestId, ZDK_NET::BanafoRequestState^ state);
54 
64  public delegate void OnEventStateUnmanaged(ZDK::BanafoEventType event, ZDK::Shared::BanafoEventState state);
65  public delegate void OnEventState(ZDK_NET::BanafoEventType event, ZDK_NET::BanafoEventState^ state);
66 
79  public delegate void OnContactListUnmanaged(ZDK::ZDKHandle requestId, ZDK::Shared::BanafoContactSearchCriteria searchCriteria, ZDK::Shared::BanafoRequestState state, ZDK::Shared::Pagination pagination, ZDK::Shared::ItemList<ZDK::Shared::BanafoContact> contactsList);
80  public delegate void OnContactList(long long requestId, ZDK_NET::BanafoContactSearchCriteria^ searchCriteria, ZDK_NET::BanafoRequestState^ state, ZDK_NET::Pagination^ pagination, List<BanafoContact^>^ contactsList);
81 
92  public delegate void OnIntegrationListUnmanaged(ZDK::ZDKHandle requestId, ZDK::Shared::BanafoRequestState state, ZDK::Shared::ItemList<ZDK::Shared::BanafoIntegration> integrationsList);
93  public delegate void OnIntegrationList(long long requestId, ZDK_NET::BanafoRequestState^ state, List<BanafoIntegration^>^ integrationsList);
94 
104  public delegate void OnProfileUnmanaged(ZDK::ZDKHandle requestId, ZDK::Shared::BanafoProfile profile);
105  public delegate void OnProfile(long long requestId, ZDK_NET::BanafoProfile^ profile);
106 
117  public delegate void OnTranscriptionLanguageListUnmanaged(ZDK::ZDKHandle requestId, ZDK::Shared::BanafoRequestState state, ZDK::Shared::ItemList<ZDK::Shared::TranscriptLanguage> languageList);
118  public delegate void OnTranscriptionLanguageList(long long requestId, ZDK_NET::BanafoRequestState^ state, List<TranscriptLanguage^>^ languageList);
119 
120 
121  public ref class BanafoEventsHandler
122  {
123  public:
124  //Delegates
125  static OnServiceStateUnmanaged^ OnServiceStateManaged = nullptr;
126  OnServiceState^ OnServiceState = nullptr;
127  static OnRequestStateUnmanaged^ OnRequestStateManaged = nullptr;
128  OnRequestState^ OnRequestState = nullptr;
129  static OnEventStateUnmanaged^ OnEventStateManaged = nullptr;
130  OnEventState^ OnEventState = nullptr;
131  static OnContactListUnmanaged^ OnContactListManaged = nullptr;
132  OnContactList^ OnContactList = nullptr;
133  static OnIntegrationListUnmanaged^ OnIntegrationListManaged = nullptr;
134  OnIntegrationList^ OnIntegrationList = nullptr;
135  static OnProfileUnmanaged^ OnProfileManaged = nullptr;
136  OnProfile^ OnProfile = nullptr;
137  static OnTranscriptionLanguageListUnmanaged^ OnTranscriptionLanguageListManaged = nullptr;
138  OnTranscriptionLanguageList^ OnTranscriptionLanguageList = nullptr;
139  //Unmanaged
140  UnmanagedOnServiceStateUnmanaged GetOnServiceState();
141  void OnServiceStateUnmanagedStub(ZDK::Shared::BanafoServiceState state);
142  UnmanagedOnRequestStateUnmanaged GetOnRequestState();
143  void OnRequestStateUnmanagedStub(ZDK::ZDKHandle requestId, ZDK::Shared::BanafoRequestState state);
144  UnmanagedOnEventStateUnmanaged GetOnEventState();
145  void OnEventStateUnmanagedStub(ZDK::BanafoEventType event, ZDK::Shared::BanafoEventState state);
146  UnmanagedOnContactListUnmanaged GetOnContactList();
147  void OnContactListUnmanagedStub(ZDK::ZDKHandle requestId, ZDK::Shared::BanafoContactSearchCriteria searchCriteria, ZDK::Shared::BanafoRequestState state, ZDK::Shared::Pagination pagination, ZDK::Shared::ItemList<ZDK::Shared::BanafoContact> contactsList);
148  UnmanagedOnIntegrationListUnmanaged GetOnIntegrationList();
149  void OnIntegrationListUnmanagedStub(ZDK::ZDKHandle requestId, ZDK::Shared::BanafoRequestState state, ZDK::Shared::ItemList<ZDK::Shared::BanafoIntegration> integrationsList);
150  UnmanagedOnProfileUnmanaged GetOnProfile();
151  void OnProfileUnmanagedStub(ZDK::ZDKHandle requestId, ZDK::Shared::BanafoProfile profile);
152  UnmanagedOnTranscriptionLanguageListUnmanaged GetOnTranscriptionLanguageList();
153  void OnTranscriptionLanguageListUnmanagedStub(ZDK::ZDKHandle requestId, ZDK::Shared::BanafoRequestState state, ZDK::Shared::ItemList<ZDK::Shared::TranscriptLanguage> languageList);
154  };
155 }
156 
157 #endif
ZDK_NET::BanafoEventsHandler
Definition: BanafoEventsHandler.h:122
ZDK_NET::BanafoProfile
Banafo user profile.
Definition: BanafoProfile.h:23
ZDK_NET::BanafoServiceState
Banafo Service state.
Definition: BanafoServiceState.h:25
ZDK_NET::Pagination
Search pagination.
Definition: Pagination.h:23
ZDK_NET::BanafoRequestState
Banafo Request state.
Definition: BanafoRequestState.h:26
ZDK_NET::BanafoEventState
Banafo Service event state.
Definition: BanafoEventState.h:25
ZDK_NET::BanafoContactSearchCriteria
Banafo listing contacts search criteria.
Definition: BanafoContactSearchCriteria.h:24