Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlee0201 committed Oct 6, 2017
1 parent be0730f commit 092e608
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
11 changes: 0 additions & 11 deletions MQTTDemo/IMLib/MQTTClient/NetworkService.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ typedef NS_ENUM(NSInteger, ConnectionStatus) {
- (void)onReceiveMessage:(NSArray<Message *> *)messages hasMore:(BOOL)hasMore;
@end

@protocol UserInfoChangDelegate <NSObject>
- (void)onUserInfoChanged:(NSArray<GroupInfo *> *)userInfos;
@end

@protocol GroupInfoChangDelegate <NSObject>
- (void)onGroupInfoChanged:(NSArray<UserInfo *> *)userInfos;
@end

@interface NetworkService : NSObject<NetworkStatusDelegate>

Expand All @@ -63,10 +56,6 @@ typedef NS_ENUM(NSInteger, ConnectionStatus) {
@property(nonatomic, weak) id<ConnectionStatusDelegate> connectionStatusDelegate;
@property(nonatomic, weak) id<ReceiveMessageDelegate> receiveMessageDelegate;

@property(nonatomic, weak) id<UserInfoChangDelegate> userInfoChangeDelegate;
@property(nonatomic, weak) id<GroupInfoChangDelegate> groupInfoChangeDelegate;


@property(nonatomic, assign, getter=isLogined, readonly)BOOL logined;
@property(nonatomic, assign, readonly)ConnectionStatus currentConnectionStatus;
@property (nonatomic, strong, readonly)NSString *userId;
Expand Down
12 changes: 1 addition & 11 deletions mars/stn/mqtt/stn_callback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,7 @@ namespace mars {
// extern const std::string sendMessageTopic;
const std::string pullMessageTopic = "MP";
const std::string notifyMessageTopic = "MN";

// extern const std::string createGroupTopic;
// extern const std::string addGroupMemberTopic;
// extern const std::string kickoffGroupMemberTopic;
// extern const std::string quitGroupTopic;
// extern const std::string dismissGroupTopic;
// extern const std::string modifyGroupInfoTopic;
// extern const std::string getGroupInfoTopic;
// extern const std::string getGroupMemberTopic;
//


void setConnectionStatusCallback(ConnectionStatusCallback *callback) {
StnCallBack::Instance()->setConnectionStatusCallback(callback);
}
Expand Down

0 comments on commit 092e608

Please sign in to comment.