forked from siegrainwong/WeChat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fd2687
commit 8a674a3
Showing
35 changed files
with
476 additions
and
123 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// Moment.h | ||
// | ||
// Created by Siegrain on 16/4/23. | ||
// Copyright © 2016年 siegrain. weChat. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface Moment : NSObject | ||
@property (copy, nonatomic) NSString* content; | ||
@property (copy, nonatomic) NSString* name; | ||
@property (strong, nonatomic) UIImage* avatar; | ||
|
||
@property (copy, nonatomic) NSArray* pictures; | ||
@property (copy, nonatomic) NSArray* comments; | ||
|
||
+ (instancetype)momentWithContent:(NSString*)content name:(NSString*)name pictures:(NSArray*)pictures comments:(NSArray*)comments; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// Moment.m | ||
// | ||
// Created by Siegrain on 16/4/23. | ||
// Copyright © 2016年 siegrain. weChat. All rights reserved. | ||
// | ||
|
||
#import "Moment.h" | ||
|
||
@implementation Moment | ||
+ (instancetype)momentWithContent:(NSString*)content name:(NSString*)name pictures:(NSArray*)pictures comments:(NSArray*)comments | ||
{ | ||
Moment* model = [[Moment alloc] init]; | ||
model.content = content; | ||
model.name = name; | ||
model.pictures = pictures; | ||
model.comments = comments; | ||
|
||
return model; | ||
} | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// MomentsDataSource.h | ||
// | ||
// Created by Siegrain on 16/4/23. | ||
// Copyright © 2016年 siegrain. weChat. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface MomentsDataSource : NSObject | ||
- (NSString*)randomName; | ||
- (NSArray*)moments; | ||
@end |
Oops, something went wrong.