Initial commit

This commit is contained in:
ifish
2017-08-15 16:59:01 +08:00
commit bdc83e07ef
5766 changed files with 423223 additions and 0 deletions
@@ -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