Skip to content

Commit

Permalink
4.0.2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
vhbvb committed Sep 22, 2017
1 parent d305794 commit 2a2c884
Show file tree
Hide file tree
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.

This file was deleted.

24 changes: 21 additions & 3 deletions iOSDemo/SDK/Required/MOBFoundation.framework/Headers/IMOBFDataModel.h 100644 → 100755
Expand Up @@ -15,23 +15,23 @@


/** /**
初始化数据模型 初始化数据模型
@param dict 初始化数据 @param dict 初始化数据
@return 数据模型 @return 数据模型
*/ */
- (instancetype)initWithDict:(NSDictionary *)dict; - (instancetype)initWithDict:(NSDictionary *)dict;


/** /**
设置数据 设置数据
@param data 数据 @param data 数据
@param key 名称 @param key 名称
*/ */
- (void)set:(id)data key:(NSString *)key; - (void)set:(id)data key:(NSString *)key;


/** /**
获取数据 获取数据
@param key 名称 @param key 名称
*/ */
- (id)get:(NSString *)key; - (id)get:(NSString *)key;
Expand All @@ -43,4 +43,22 @@
*/ */
- (NSDictionary *)dictionaryValue; - (NSDictionary *)dictionaryValue;


/**
返回字段映射字典
说明:类如果实现此方法,并返回映射字典,在使用initWithDict初始化时,则会按照映射查找属性;key 为真正想要设定的、存在的属性 ,value为需要映射的字段
@return 字段映射字典
*/
- (NSDictionary <NSString *, NSString *> *)mappingDictionary;

/**
当类中有属性为数组,且数组元素同为MOBFDataModel时,应该置制定该属性属性及其元素类型
例如有 @property NSArray <OtherDataModel *> *array;
应主动实现本方法,并返回 @{@"array" : @"OtherDataModel"}
@return 映射配置
*/
- (NSDictionary <NSString *, NSString *> *)confirmArrayElementType;

@end @end

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.

0 comments on commit 2a2c884

Please sign in to comment.