zdk.net
RingBackToneControl.h
1 //
2 // RingBackToneControl.h
3 // ZDK
4 //
5 
6 #ifndef ZDK_NET_RingBackToneControl_h
7 #define ZDK_NET_RingBackToneControl_h
8 
9 #include "native_shared_ptr.h"
10 #include "PublicInterfaces.h"
11 #include "Sound.h"
12 #include "Result.h"
13 #include "ZHandle.h"
14 
15 using namespace System::Collections::Generic;
16 
17 namespace ZDK_NET
18 {
19  ref class Sound;
20  ref class Result;
21 
26  public ref class RingBackToneControl : ZHandle
27  {
28  public:
29  ZDK::IRingBackToneControl* cppRef = nullptr;
30 
31  RingBackToneControl(ZDK::Shared::RingBackToneControl src);
34 
45  property bool Enable
46  {
47  bool get();
48  void set(bool value);
49  }
50 
57  property ZDK_NET::Sound^ RingBackSound
58  {
59  ZDK_NET::Sound^ get();
60  void set(ZDK_NET::Sound^ value);
61  }
62 
72 
82 
83  virtual long long Handle() override;
84 
85  virtual void Initialize() override;
86 
87  virtual void ReleaseReference() override;
88 
89  };
90 }
91 
92 #endif
ZDK_NET::Result
API invocation status result.
Definition: Result.h:24
ZDK_NET::RingBackToneControl
Ringback tone's main entry point.
Definition: RingBackToneControl.h:27
ZDK_NET::Sound
ZDK Sound description.
Definition: Sound.h:21
ZDK_NET::RingBackToneControl::Stop
ZDK_NET::Result ^ Stop()
Stops the playing of the ringback tone.
ZDK_NET::ZHandle
Definition: ZHandle.h:18
ZDK_NET::RingBackToneControl::Play
ZDK_NET::Result ^ Play()
Starts the ringback tone playing.