Skip to content

Commit

Permalink
updated to SDK 2.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Khomenko committed Oct 20, 2014
1 parent da00985 commit aa47e42
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 3 deletions.
23 changes: 21 additions & 2 deletions Framework/Quickblox.framework/Versions/A/Headers/ChatDelegates.h
Expand Up @@ -402,13 +402,32 @@


#pragma mark -
#pragma mark Delivery status
#pragma mark Delivered status

/**
Called when you received a confirmation about message delivery
@warning *Deprecated in QB iOS SDK 2.0.7:* Use chatDidDeliverMessageWithID: instead
@param packetID ID of an original message
*/
- (void)chatDidDeliverMessageWithPacketID:(NSString *)packetID;
- (void)chatDidDeliverMessageWithPacketID:(NSString *)packetID __attribute__((deprecated("use 'chatDidDeliverMessageWithID:' instead.")));

/**
Called when you received a confirmation about message delivery
@param messageID ID of an original message
*/
- (void)chatDidDeliverMessageWithID:(NSString *)messageID;


#pragma mark -
#pragma mark Read status

/**
Called when you received a confirmation about message read
@param messageID ID of an original message
*/
- (void)chatDidReadMessageWithID:(NSString *)messageID;


#pragma mark -
Expand Down
22 changes: 22 additions & 0 deletions Framework/Quickblox.framework/Versions/A/Headers/QBChat.h
Expand Up @@ -98,6 +98,14 @@ typedef enum QBChatServiceError {

- (BOOL)sendMessage:(QBChatMessage *)message sentBlock:(void (^)(NSError *))sentBlock;

/**
Send "Read message" status back to sender
@param message original message received from user
@return YES if the request was sent successfully. If not - see log.
*/
- (BOOL)readMessage:(QBChatMessage *)message;

/**
Send presence message. Session will be closed in 90 seconds since last activity.
Expand Down Expand Up @@ -420,6 +428,20 @@ typedef enum QBChatServiceError {
+ (NSObject<Cancelable> *)updateDialogWithID:(NSString *)dialogID extendedRequest:(NSMutableDictionary *)extendedRequest delegate:(NSObject<QBActionStatusDelegate> *)delegate context:(void *)context;


#pragma mark -
#pragma mark Delete dialog

/**
Delete chat dialog
@param dialogID ID of a dialog to delete
@param delegate An object for callback, must adopt QBActionStatusDelegate protocol. The delegate is retained. Upon finish of the request, result will be an instance of QBChatDialogResult class.
@return An instance, which conforms Cancelable protocol. Use this instance to cancel the operation.
*/
+ (NSObject<Cancelable> *)deleteDialogWithID:(NSString *)dialogID delegate:(NSObject<QBActionStatusDelegate> *)delegate;
+ (NSObject<Cancelable> *)deleteDialogWithID:(NSString *)dialogID delegate:(NSObject<QBActionStatusDelegate> *)delegate context:(void *)context;


#pragma mark -
#pragma mark Retrive Messages

Expand Down
@@ -0,0 +1,18 @@
//
// QBChatDialogDeleteQuery.h
// Quickblox
//
// Created by Igor Khomenko on 10/20/14.
// Copyright (c) 2014 QuickBlox. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "QBChatQuery.h"

@interface QBChatDialogDeleteQuery : QBChatQuery

@property (nonatomic, readonly, retain) NSString *dialogID;

- (instancetype)initWithDialogID:(NSString *)dialogID;

@end
Expand Up @@ -11,6 +11,7 @@
#import <Quickblox/QBChatQuery.h>

#import <Quickblox/QBCDialogGetQuery.h>
#import <Quickblox/QBChatDialogDeleteQuery.h>
#import <Quickblox/QBCMessageGetQuery.h>
#import <Quickblox/QBChatDialogCreateQuery.h>
#import <Quickblox/QBChatDialogUpdateQuery.h>
Expand Down
Expand Up @@ -62,4 +62,8 @@

+ (void)extractParametersToRequestURL:(NSMutableDictionary *)parameters requestURL:(NSMutableString *)requestURL;


// MongoDb ID
+ (NSString *)generateMongoDBID;

@end
Expand Up @@ -22,6 +22,7 @@ typedef enum QBMNotificationType{

// Event push types
typedef enum QBMPushType{
QBMPushTypeUndefined = 0,
QBMPushTypeAPNS = 1,
QBMPushTypeGCM = 2,
QBMPushTypeMPNS = 3,
Expand Down
13 changes: 13 additions & 0 deletions Framework/Quickblox.framework/Versions/A/Headers/QBMongoDB.h
@@ -0,0 +1,13 @@
#import <Foundation/Foundation.h>

typedef struct {
UInt32 m[3];
} QBMongoDBObjectID;

@interface QBMongoDB : NSObject

+ (QBMongoDBObjectID) objectID;
+ (NSString *)stringWithId:(QBMongoDBObjectID)ID;
+ (QBMongoDBObjectID)idWithString:(NSString *)string;

@end
Expand Up @@ -23,6 +23,7 @@
@property (nonatomic, readonly, getter=isTokenValid) BOOL tokenValid;

- (void)startSessionWithDetails:(QBASession *)session expirationDate:(NSDate *)sessionDate;
- (void)startSessionWithToken:(NSString *)token expirationDate:(NSDate *)sessionDate;
- (void)startSessionForUser:(QBUUser *)user withDetails:(QBASession *)session expirationDate:(NSDate *)sessionDate;
- (void)saveSocialProviderDetailsFromHeaders:(NSDictionary *)headers;
- (void)endSession;
Expand Down
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2012 QuickBlox. All rights reserved.
//
// frameworkVersion 2.0.9
// frameworkVersion 2.0.10

#import <Quickblox/BaseServiceFramework.h>
#import <Quickblox/AuthServiceFramework.h>
Expand Down
Binary file modified Framework/Quickblox.framework/Versions/A/Quickblox
Binary file not shown.

0 comments on commit aa47e42

Please sign in to comment.