Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// MessageDAO.h
|
||||
// Yoosee
|
||||
//
|
||||
// Created by guojunyi on 14-5-29.
|
||||
// Copyright (c) 2014年 guojunyi. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "Message.h"
|
||||
#import "sqlite3.h"
|
||||
#define DB_NAME @"Yoosee.sqlite"
|
||||
@interface MessageDAO : NSObject
|
||||
@property (nonatomic) sqlite3 *db;
|
||||
|
||||
|
||||
-(BOOL)insert:(Message*)recent;
|
||||
-(NSMutableArray*)findAllWithId:(NSString*)contactId;
|
||||
-(BOOL)delete:(Message*)recent;
|
||||
-(BOOL)clearWithId:(NSString*)contactId;
|
||||
|
||||
-(BOOL)updateMessageStateWithFlag:(NSInteger)flag state:(NSInteger)state;
|
||||
-(BOOL)update:(Message*)message;
|
||||
@end
|
||||
Reference in New Issue
Block a user