| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /************************************************************
- * * Hyphenate CONFIDENTIAL
- * __________________
- * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
- *
- * NOTICE: All information contained herein is, and remains
- * the property of Hyphenate Inc.
- * Dissemination of this information or reproduction of this material
- * is strictly forbidden unless prior written permission is obtained
- * from Hyphenate Inc.
- */
- #import "EaseConversationModel.h"
- //#if ENABLE_LITE == 1
- #import <HyphenateLite/EMConversation.h>
- //#else
- //#import <Hyphenate/EMConversation.h>
- //#endif
- @implementation EaseConversationModel
- - (instancetype)initWithConversation:(EMConversation *)conversation
- {
- self = [super init];
- if (self) {
- _conversation = conversation;
- _title = _conversation.conversationId;
- if (conversation.type == EMConversationTypeChat) {
- _avatarImage = [UIImage imageNamed:@"EaseUIResource.bundle/user"];
- }
- else{
- _avatarImage = [UIImage imageNamed:@"EaseUIResource.bundle/group"];
- }
- }
-
- return self;
- }
- @end
|