Permalink
Browse files

4.0.2 update

  • Loading branch information...
vhbvb committed Sep 22, 2017
1 parent d305794 commit 2a2c88439c0550f5163ca23fc5aebedc9a0271c5
Showing 593 changed files with 11,490 additions and 616 deletions.
@@ -0,0 +1,38 @@
//
// IMOBBaseUser.h
// MOBFoundation
//
// Created by 冯鸿杰 on 2017/9/5.
// Copyright © 2017年 MOB. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "IMOBFDataModel.h"
/**
基础用户信息
*/
@protocol IMOBBaseUser <IMOBFDataModel>
/**
获取用户ID
@return 用户ID
*/
- (NSString *)uid;
/**
获取用户头像
@return 头像
*/
- (NSString *)avatar;
/**
获取用户昵称
@return 昵称
*/
- (NSString *)nickname;
@end

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -15,23 +15,23 @@
/**
初始化数据模型
@param dict 初始化数据
@return 数据模型
*/
- (instancetype)initWithDict:(NSDictionary *)dict;
/**
设置数据
@param data 数据
@param key 名称
*/
- (void)set:(id)data key:(NSString *)key;
/**
获取数据
@param key 名称
*/
- (id)get:(NSString *)key;
@@ -43,4 +43,22 @@
*/
- (NSDictionary *)dictionaryValue;
/**
返回字段映射字典
说明:类如果实现此方法,并返回映射字典,在使用initWithDict初始化时,则会按照映射查找属性;key 为真正想要设定的、存在的属性 ,value为需要映射的字段
@return 字段映射字典
*/
- (NSDictionary <NSString *, NSString *> *)mappingDictionary;
/**
当类中有属性为数组,且数组元素同为MOBFDataModel时,应该置制定该属性属性及其元素类型
例如有 @property NSArray <OtherDataModel *> *array;
应主动实现本方法,并返回 @{@"array" : @"OtherDataModel"}
@return 映射配置
*/
- (NSDictionary <NSString *, NSString *> *)confirmArrayElementType;
@end

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
No changes.
Oops, something went wrong.

0 comments on commit 2a2c884

Please sign in to comment.