ZDK
IMessage.h
1 #ifndef __IMESSAGE__
2 #define __IMESSAGE__
3 
4 #include "IZHandle.h"
5 #include "Types/SharedPointerTypes.h"
6 
7 namespace ZDK
8 {
9 
10 class IMessage : public virtual ZDK::IZHandle
11 {
12 public:
13  //# @abi(all) documentation
19  //# @abi(jni|obj_c) property
20  virtual ZDK::ZDKHandle MessageHandle() const = 0;
21 
22  //# @abi(all) documentation
30  //# @abi(jni|obj_c) property
31  virtual ZDK::MessageType Type() const = 0;
32 
33  //# @abi(all) documentation
39  //# @abi(jni|obj_c) property
40  virtual ZDK::Shared::String Peer() const = 0;
41 
42  //# @abi(all) documentation
48  //# @abi(jni|obj_c) property
49  virtual void Peer(ZDK::Shared::String value) = 0;
50 
51  //# @abi(all) documentation
57  //# @abi(jni|obj_c) property
58  virtual ZDK::Shared::String Content() const = 0;
59 
60  //# @abi(all) documentation
66  //# @abi(jni|obj_c) property
67  virtual void Content(ZDK::Shared::String content) = 0;
68 
69  //# @abi(all) documentation
75  virtual ZDK::Shared::Result SendMessage() = 0;
76 
77  //# @abi(all) documentation
83  //# @abi(obj_c|jni) @param(value) delegate|register
84  virtual void SetMessageEventListener(ZDK::Shared::MessageEventsHandler value) = 0;
85 
86  //# @abi(all) documentation
92  //# @abi(obj_c|jni) @param(value) delegate|unregister
93  virtual void DropMessageEventListener(ZDK::Shared::MessageEventsHandler value) = 0;
94 };
95 
96 } //namespace ZDK
97 
98 #endif //__IMESSAGE__
Definition: IZHandle.h:12
virtual ZDK::Shared::String Content() const =0
Gets the message content.
virtual ZDK::MessageType Type() const =0
Gets the message type.
virtual ZDK::Shared::Result SendMessage()=0
Sends the message.
virtual void DropMessageEventListener(ZDK::Shared::MessageEventsHandler value)=0
Drops a message event listener.
Definition: IAccountConfig.h:10
virtual ZDK::ZDKHandle MessageHandle() const =0
Gets message handle.
virtual void SetMessageEventListener(ZDK::Shared::MessageEventsHandler value)=0
Sets a message event listener.
Definition: IMessage.h:10
virtual ZDK::Shared::String Peer() const =0
Gets the message peer.