1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // FKProductAdviseItem.m
- // FirstLink
- //
- // Created by ascii on 16/1/26.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import "FKProductAdviseItem.h"
- @implementation FKProductAdviseItem
- + (NSDictionary *)mts_mapping
- {
- return @{@"id": mts_key(itemID),
- @"object_id": mts_key(productID),
- @"object_type": mts_key(objectType),
- @"question_user_id": mts_key(qUserID),
- @"question_user_nickname": mts_key(qUsername),
- @"question_user_head_pic": mts_key(qUserHeadURL),
- @"question_time": mts_key(qTime),
- @"question": mts_key(qContent),
- @"answer_user_id": mts_key(aUserID),
- @"answer_user_nickname": mts_key(aUsername),
- @"answer_user_head_pic": mts_key(aUserHeadURL),
- @"answer_time": mts_key(aTime),
- @"answer": mts_key(aContent),
- };
- }
- + (BOOL)mts_shouldSetUndefinedKeys
- {
- return NO;
- }
- - (BOOL)isExistAnswer {
- if (self.aContent.length > 0) {
- return YES;
- }
- return NO;
- }
- @end
|